コード例 #1
0
        public static int Mix_SetSoundFonts(string paths)
        {
            var pathsUTF8 = Utf8String.ReusableBufferPtr(paths);

            return(Mix_SetSoundFontsNative(pathsUTF8));
        }
コード例 #2
0
        /* IntPtr refers to a Mix_Music* */
        public static IntPtr Mix_LoadMUS(string file)
        {
            var fileUTF8 = Utf8String.ReusableBufferPtr(file);

            return(Mix_LoadMUSNative(fileUTF8));
        }
コード例 #3
0
        public static int Mix_SetMusicCMD(string command)
        {
            var commandUTF8 = Utf8String.ReusableBufferPtr(command);

            return(Mix_SetMusicCMDNative(commandUTF8));
        }
コード例 #4
0
ファイル: SDL2_image.cs プロジェクト: TenCoKaciStromy/SDL2-CS
        /* surface refers to an SDL_Surface* */
        public static int IMG_SavePNG(IntPtr surface, string file)
        {
            var fileUTF8 = Utf8String.ReusableBufferPtr(file);

            return(IMG_SavePNGNative(surface, fileUTF8));
        }
コード例 #5
0
ファイル: SDL2_image.cs プロジェクト: TenCoKaciStromy/SDL2-CS
        /* IntPtr refers to an SDL_Surface* */
        public static IntPtr IMG_Load(string file)
        {
            var fileUTF8 = Utf8String.ReusableBufferPtr(file);

            return(IMG_LoadNative(fileUTF8));
        }
コード例 #6
0
ファイル: SDL2_image.cs プロジェクト: TenCoKaciStromy/SDL2-CS
        /* IntPtr refers to an SDL_Texture*, renderer to an SDL_Renderer* */
        public static IntPtr IMG_LoadTexture(IntPtr renderer, string file)
        {
            var fileUTF8 = Utf8String.ReusableBufferPtr(file);

            return(IMG_LoadTextureNative(renderer, fileUTF8));
        }
コード例 #7
0
ファイル: SDL2_image.cs プロジェクト: TenCoKaciStromy/SDL2-CS
        /* renderer refers to an SDL_Renderer*.
         * src refers to an SDL_RWops*.
         * IntPtr to an SDL_Texture*.
         */
        /* THIS IS A PUBLIC RWops FUNCTION! */
        public static IntPtr IMG_LoadTextureTyped_RW(IntPtr renderer, IntPtr src, int freesrc, string type)
        {
            var typeUTF8 = Utf8String.ReusableBufferPtr(type);

            return(IMG_LoadTextureTyped_RWNative(renderer, src, freesrc, typeUTF8));
        }
コード例 #8
0
        /* IntPtr refers to a TTF_Font */
        public static IntPtr TTF_OpenFont(string file, int ptsize)
        {
            var fileUTF8 = Utf8String.ReusableBufferPtr(file);

            return(TTF_OpenFontNative(fileUTF8, ptsize));
        }
コード例 #9
0
        /* IntPtr refers to an SDL_Surface*, font to a TTF_Font* */
        public static IntPtr TTF_RenderUTF8_Blended_Wrapped(IntPtr font, string text, SDL.SDL_Color fg, uint wrapped)
        {
            var textUTF8 = Utf8String.ReusableBufferPtr(text);

            return(TTF_RenderUTF8_Blended_WrappedNative(font, textUTF8, fg, wrapped));
        }
コード例 #10
0
        /* IntPtr refers to an SDL_Surface*, font to a TTF_Font* */
        public static IntPtr TTF_RenderUTF8_Shaded(IntPtr font, string text, SDL.SDL_Color fg, SDL.SDL_Color bg)
        {
            var textUTF8 = Utf8String.ReusableBufferPtr(text);

            return(TTF_RenderUTF8_ShadedNative(font, textUTF8, fg, bg));
        }
コード例 #11
0
        /* font refers to a TTF_Font* */
        public static int TTF_SizeUTF8(IntPtr font, string text, out int w, out int h)
        {
            var textUTF8 = Utf8String.ReusableBufferPtr(text);

            return(TTF_SizeUTF8Native(font, textUTF8, out w, out h));
        }
コード例 #12
0
        /* IntPtr refers to a TTF_Font* */
        public static IntPtr TTF_OpenFontIndex(string file, int ptsize, long index)
        {
            var fileUTF8 = Utf8String.ReusableBufferPtr(file);

            return(TTF_OpenFontIndexNative(fileUTF8, ptsize, index));
        }