Added SDL_RenderGetScale and SDL_RenderSetScale
This commit is contained in:
parent
b8baa22a1b
commit
d26d719d76
16
src/SDL2.cs
16
src/SDL2.cs
@ -1973,6 +1973,14 @@ namespace SDL2
|
|||||||
out int h
|
out int h
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/* renderer refers to an SDL_Renderer* */
|
||||||
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern void SDL_RenderGetScale(
|
||||||
|
IntPtr renderer,
|
||||||
|
out float scaleX,
|
||||||
|
out float scaleY
|
||||||
|
);
|
||||||
|
|
||||||
/* renderer refers to an SDL_Renderer* */
|
/* renderer refers to an SDL_Renderer* */
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern int SDL_RenderGetViewport(
|
public static extern int SDL_RenderGetViewport(
|
||||||
@ -2018,6 +2026,14 @@ namespace SDL2
|
|||||||
int h
|
int h
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/* renderer refers to an SDL_Renderer* */
|
||||||
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int SDL_RenderSetScale(
|
||||||
|
IntPtr renderer,
|
||||||
|
float scaleX,
|
||||||
|
float scaleY
|
||||||
|
);
|
||||||
|
|
||||||
/* renderer refers to an SDL_Renderer* */
|
/* renderer refers to an SDL_Renderer* */
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern int SDL_RenderSetViewport(
|
public static extern int SDL_RenderSetViewport(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user