Add Render[Get/Set]ClipRect (thanks Martin!)

This commit is contained in:
Ethan Lee 2014-06-05 12:10:14 -04:00
parent 7a39b5d49c
commit ed8c91d2f3

View file

@ -1926,6 +1926,13 @@ namespace SDL2
int count
);
/* renderer refers to an SDL_Renderer* */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void SDL_RenderGetClipRect(
IntPtr renderer,
out SDL_Rect rect
);
/* renderer refers to an SDL_Renderer* */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void SDL_RenderGetLogicalSize(
@ -1955,6 +1962,22 @@ namespace SDL2
int pitch
);
/* renderer refers to an SDL_Renderer* */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int SDL_RenderSetClipRect(
IntPtr renderer,
ref SDL_Rect rect
);
/* renderer refers to an SDL_Renderer*
* This overload allows for IntPtr.Zero (null) to be passed for rect.
*/
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int SDL_RenderSetClipRect(
IntPtr renderer,
IntPtr rect
);
/* renderer refers to an SDL_Renderer* */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int SDL_RenderSetLogicalSize(