Beispiel #1
0
        public static int Mix_SetSoundFonts(string paths)
        {
            var pathsUTF8 = Utf8String.ReusableBufferPtr(paths);

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

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

            return(Mix_SetMusicCMDNative(commandUTF8));
        }
Beispiel #4
0
        /* 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));
        }
Beispiel #5
0
        /* IntPtr refers to an SDL_Surface* */
        public static IntPtr IMG_Load(string file)
        {
            var fileUTF8 = Utf8String.ReusableBufferPtr(file);

            return(IMG_LoadNative(fileUTF8));
        }
Beispiel #6
0
        /* 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));
        }
Beispiel #7
0
        /* 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));
        }
Beispiel #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));
        }
Beispiel #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));
        }
Beispiel #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));
        }
Beispiel #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));
        }
Beispiel #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));
        }