From d26d719d76f63b894e593f83a9c011a82bf7104d Mon Sep 17 00:00:00 2001 From: Villermen Date: Thu, 26 Jun 2014 01:11:11 +0200 Subject: [PATCH] Added SDL_RenderGetScale and SDL_RenderSetScale --- src/SDL2.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/SDL2.cs b/src/SDL2.cs index b674c90..cec969a 100644 --- a/src/SDL2.cs +++ b/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(