diff --git a/src/SDL2.cs b/src/SDL2.cs index d1e5517..a5185c2 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -2133,6 +2133,16 @@ namespace SDL2 int pitch ); + /* renderer refers to an SDL_Renderer* */ + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern SDL_bool SDL_RenderTargetSupported( + IntPtr renderer + ); + + /* IntPtr refers to an SDL_Texture*, renderer to an SDL_Renderer* */ + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr SDL_GetRenderTarget(IntPtr renderer); + #endregion #region SDL_pixels.h