SDL_FillRect overload

pull/99/head
Ethan Lee 2015-12-30 19:16:29 -05:00
parent a44c92397d
commit 1efc47ee26
1 changed files with 10 additions and 0 deletions

View File

@ -3063,6 +3063,16 @@ namespace SDL2
uint color
);
/* dst refers to an SDL_Surface*.
* This overload allows passing NULL to rect.
*/
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int SDL_FillRect(
IntPtr dst,
IntPtr rect,
uint color
);
/* dst refers to an SDL_Surface* */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int SDL_FillRects(