SDL2_image has SavePNG, woohoo!
This commit is contained in:
parent
f3ae14eb98
commit
062241ca82
@ -112,6 +112,14 @@ namespace SDL2
|
|||||||
string[] xpm
|
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
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user