From 7a248e26780f3df279cd44ca641a528e43f555a9 Mon Sep 17 00:00:00 2001 From: David Barnett Date: Sun, 7 Dec 2014 12:55:56 +1300 Subject: [PATCH] Added SDL_GetRendererOutputSize --- src/SDL2.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/SDL2.cs b/src/SDL2.cs index a5185c2..6c0a7a4 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -1776,6 +1776,14 @@ namespace SDL2 out SDL_RendererInfo info ); + /* renderer refers to an SDL_Renderer* */ + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern int SDL_GetRendererOutputSize( + IntPtr renderer, + out int w, + out int h + ); + /* texture refers to an SDL_Texture* */ [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int SDL_GetTextureAlphaMod(