mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2025-02-03 15:30:59 +00:00
Merge pull request #47 from luiscubal/master
Added SDL_RenderSetLogicalSize and SDL_RenderGetLogicalSize
This commit is contained in:
commit
193b1db8cb
16
src/SDL2.cs
16
src/SDL2.cs
|
@ -1894,6 +1894,14 @@ namespace SDL2
|
||||||
int count
|
int count
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/* renderer refers to an SDL_Renderer* */
|
||||||
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern void SDL_RenderGetLogicalSize(
|
||||||
|
IntPtr renderer,
|
||||||
|
out int w,
|
||||||
|
out int h
|
||||||
|
);
|
||||||
|
|
||||||
/* 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(
|
||||||
|
@ -1915,6 +1923,14 @@ namespace SDL2
|
||||||
int pitch
|
int pitch
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/* renderer refers to an SDL_Renderer* */
|
||||||
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int SDL_RenderSetLogicalSize(
|
||||||
|
IntPtr renderer,
|
||||||
|
int w,
|
||||||
|
int h
|
||||||
|
);
|
||||||
|
|
||||||
/* 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…
Reference in a new issue