SDL_Render rendertarget funcs

This commit is contained in:
Ethan Lee 2014-12-04 20:01:57 -05:00
parent 847df8350b
commit 99f2688d2b

View file

@ -2101,6 +2101,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