public static int Mix_SetSoundFonts(string paths) { var pathsUTF8 = Utf8String.ReusableBufferPtr(paths); return(Mix_SetSoundFontsNative(pathsUTF8)); }
/* IntPtr refers to a Mix_Music* */ public static IntPtr Mix_LoadMUS(string file) { var fileUTF8 = Utf8String.ReusableBufferPtr(file); return(Mix_LoadMUSNative(fileUTF8)); }
public static int Mix_SetMusicCMD(string command) { var commandUTF8 = Utf8String.ReusableBufferPtr(command); return(Mix_SetMusicCMDNative(commandUTF8)); }
/* 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)); }
/* IntPtr refers to an SDL_Surface* */ public static IntPtr IMG_Load(string file) { var fileUTF8 = Utf8String.ReusableBufferPtr(file); return(IMG_LoadNative(fileUTF8)); }
/* 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)); }
/* 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)); }
/* 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)); }
/* 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)); }
/* 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)); }
/* 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)); }
/* 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)); }