diff --git a/src/SDL2_ttf.cs b/src/SDL2_ttf.cs index 94a8e92..820f3b6 100644 --- a/src/SDL2_ttf.cs +++ b/src/SDL2_ttf.cs @@ -100,6 +100,16 @@ namespace SDL2 int ptsize ); + /* IntPtr refers to a TTF_Font* */ + /* src refers to an SDL_RWops* */ + /* THIS IS AN RWops FUNCTION! */ + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr TTF_OpenFontRW( + IntPtr src, + int freesrc, + int ptsize + ); + /* IntPtr refers to a TTF_Font* */ [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern IntPtr TTF_OpenFontIndex( @@ -109,6 +119,17 @@ namespace SDL2 long index ); + /* IntPtr refers to a TTF_Font* */ + /* src refers to an SDL_RWops* */ + /* THIS IS AN RWops FUNCTION! */ + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr TTF_OpenFontIndexRW( + IntPtr src, + int freesrc, + int ptsize, + long index + ); + /* font refers to a TTF_Font* */ [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int TTF_GetFontStyle(IntPtr font);