mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2024-12-23 04:55:28 +00:00
Render*Rect NULL overloads
This commit is contained in:
parent
7a248e2678
commit
a273ea9a18
18
src/SDL2.cs
18
src/SDL2.cs
|
@ -1973,6 +1973,15 @@ namespace SDL2
|
|||
ref SDL_Rect rect
|
||||
);
|
||||
|
||||
/* renderer refers to an SDL_Renderer*, rect to an SDL_Rect*.
|
||||
* This overload allows for IntPtr.Zero (null) to be passed for rect.
|
||||
*/
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern int SDL_RenderDrawRect(
|
||||
IntPtr renderer,
|
||||
IntPtr rect
|
||||
);
|
||||
|
||||
/* renderer refers to an SDL_Renderer* */
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern int SDL_RenderDrawRects(
|
||||
|
@ -1989,6 +1998,15 @@ namespace SDL2
|
|||
ref SDL_Rect rect
|
||||
);
|
||||
|
||||
/* renderer refers to an SDL_Renderer*, rect to an SDL_Rect*.
|
||||
* This overload allows for IntPtr.Zero (null) to be passed for rect.
|
||||
*/
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern int SDL_RenderFillRect(
|
||||
IntPtr renderer,
|
||||
IntPtr rect
|
||||
);
|
||||
|
||||
/* renderer refers to an SDL_Renderer* */
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern int SDL_RenderFillRects(
|
||||
|
|
Loading…
Reference in a new issue