mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2024-12-23 08:45:29 +00:00
SDL2_image has SavePNG, woohoo!
This commit is contained in:
parent
f3ae14eb98
commit
062241ca82
|
@ -112,6 +112,14 @@ namespace SDL2
|
|||
string[] xpm
|
||||
);
|
||||
|
||||
/* surface refers to an SDL_Surface* */
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern int IMG_SavePNG(
|
||||
IntPtr surface,
|
||||
[In()] [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(LPUtf8StrMarshaler))]
|
||||
string file
|
||||
);
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue