include/SDL_render.h
changeset 6578 77d70ec131bc
parent 6530 ba5de88eab60
child 6826 7fd31621ce9c
--- a/include/SDL_render.h	Thu Oct 11 15:05:00 2012 -0700
+++ b/include/SDL_render.h	Fri Oct 12 02:20:10 2012 -0700
@@ -413,11 +413,22 @@
  * \param texture The targeted texture, which must be created with the SDL_TEXTUREACCESS_TARGET flag, or NULL for the default render target
  *
  * \return 0 on success, or -1 on error
+ *
+ *  \sa SDL_GetRenderTarget()
  */
 extern DECLSPEC int SDLCALL SDL_SetRenderTarget(SDL_Renderer *renderer,
                                                 SDL_Texture *texture);
 
 /**
+ * \brief Get the current render target or NULL for the default render target.
+ *
+ * \return The current render target
+ *
+ *  \sa SDL_SetRenderTarget()
+ */
+extern DECLSPEC SDL_Texture * SDLCALL SDL_GetRenderTarget(SDL_Renderer *renderer);
+
+/**
  *  \brief Set device independent resolution for rendering
  *
  *  \param w      The width of the logical resolution