mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2025-01-10 18:05:36 +00:00
A few SDL2_image RWops funcs
This commit is contained in:
parent
a273ea9a18
commit
6ca6862d7e
|
@ -102,6 +102,16 @@ namespace SDL2
|
||||||
int freesrc
|
int freesrc
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/* src refers to an SDL_RWops*, IntPtr to an SDL_Surface* */
|
||||||
|
/* THIS IS A PUBLIC RWops FUNCTION! */
|
||||||
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern IntPtr IMG_LoadTyped_RW(
|
||||||
|
IntPtr src,
|
||||||
|
int freesrc,
|
||||||
|
[In()] [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(LPUtf8StrMarshaler))]
|
||||||
|
string type
|
||||||
|
);
|
||||||
|
|
||||||
/* IntPtr refers to an SDL_Texture*, renderer to an SDL_Renderer* */
|
/* IntPtr refers to an SDL_Texture*, renderer to an SDL_Renderer* */
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern IntPtr IMG_LoadTexture(
|
public static extern IntPtr IMG_LoadTexture(
|
||||||
|
@ -110,6 +120,32 @@ namespace SDL2
|
||||||
string file
|
string file
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/* renderer refers to an SDL_Renderer*.
|
||||||
|
* src refers to an SDL_RWops*.
|
||||||
|
* IntPtr to an SDL_Texture*.
|
||||||
|
*/
|
||||||
|
/* THIS IS A PUBLIC RWops FUNCTION! */
|
||||||
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern IntPtr IMG_LoadTexture_RW(
|
||||||
|
IntPtr renderer,
|
||||||
|
IntPtr src,
|
||||||
|
int freesrc
|
||||||
|
);
|
||||||
|
|
||||||
|
/* renderer refers to an SDL_Renderer*.
|
||||||
|
* src refers to an SDL_RWops*.
|
||||||
|
* IntPtr to an SDL_Texture*.
|
||||||
|
*/
|
||||||
|
/* THIS IS A PUBLIC RWops FUNCTION! */
|
||||||
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern IntPtr IMG_LoadTextureTyped_RW(
|
||||||
|
IntPtr renderer,
|
||||||
|
IntPtr src,
|
||||||
|
int freesrc,
|
||||||
|
[In()] [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(LPUtf8StrMarshaler))]
|
||||||
|
string type
|
||||||
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern int IMG_InvertAlpha(int on);
|
public static extern int IMG_InvertAlpha(int on);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue