Added IMG_GetError and IMG_SetError wrapping calls to SDL_GetError and SDL_SetError to keep SDL2_image.cs consistent with SDL2_image.h

This commit is contained in:
Jeremy Sayers 2020-10-28 22:37:00 -04:00 committed by Ethan Lee
parent e95ef4e98a
commit 5966578e82

View file

@ -254,6 +254,16 @@ namespace SDL2
int quality int quality
); );
public static string IMG_GetError()
{
return SDL.SDL_GetError();
}
public static void IMG_SetError(string fmtAndArglist)
{
SDL.SDL_SetError(fmtAndArglist);
}
#region Animated Image Support #region Animated Image Support
/* This region is only available in 2.0.6 or higher. */ /* This region is only available in 2.0.6 or higher. */