/* 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)); }
/* font refers to a TTF_Font* */ public static string TTF_FontFaceStyleName(IntPtr font) { return(Utf8String.String(TTF_FontFaceStyleNameNative(font))); }
/* 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)); }