mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2024-12-23 04:45:28 +00:00
Merge pull request #66 from Villermen/master
SDL_RenderGetScale & SDL_RenderSetScale
This commit is contained in:
commit
ed817aad60
16
src/SDL2.cs
16
src/SDL2.cs
|
@ -1973,6 +1973,14 @@ namespace SDL2
|
|||
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* */
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern int SDL_RenderGetViewport(
|
||||
|
@ -2018,6 +2026,14 @@ namespace SDL2
|
|||
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* */
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern int SDL_RenderSetViewport(
|
||||
|
|
Loading…
Reference in a new issue