SDL2_image has SavePNG, woohoo!

This commit is contained in:
Ethan Lee 2013-11-18 11:28:32 -05:00
parent f3ae14eb98
commit 062241ca82

View file

@ -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
}
}