From 5caa264f8510d8e7500227c22f7437827f82f7e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Reis?= Date: Sat, 30 Nov 2013 15:52:55 +0000 Subject: [PATCH] Added SDL_RenderSetLogicalSize and SDL_RenderGetLogicalSize --- src/SDL2.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/SDL2.cs b/src/SDL2.cs index 434d1ed..2a08eaa 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -1894,6 +1894,14 @@ namespace SDL2 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* */ [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int SDL_RenderGetViewport( @@ -1915,6 +1923,14 @@ namespace SDL2 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* */ [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int SDL_RenderSetViewport(