include/SDL_render.h
changeset 5166 4d39eeaad00b
parent 5164 97423d858a1a
child 5216 16d5e8e90e01
--- a/include/SDL_render.h	Thu Feb 03 11:16:57 2011 -0800
+++ b/include/SDL_render.h	Thu Feb 03 15:49:37 2011 -0800
@@ -154,6 +154,7 @@
  *  
  *  \return A valid rendering context or NULL if there was an error.
  *  
+ *  \sa SDL_CreateSoftwareRenderer()
  *  \sa SDL_GetRendererInfo()
  *  \sa SDL_DestroyRenderer()
  */
@@ -161,6 +162,18 @@
                                                int index, Uint32 flags);
 
 /**
+ *  \brief Create a 2D software rendering context for a surface.
+ *  
+ *  \param surface The surface where rendering is done.
+ *  
+ *  \return A valid rendering context or NULL if there was an error.
+ *  
+ *  \sa SDL_CreateRenderer()
+ *  \sa SDL_DestroyRenderer()
+ */
+extern DECLSPEC SDL_Renderer * SDLCALL SDL_CreateSoftwareRenderer(SDL_Surface * surface);
+
+/**
  *  \brief Get information about a rendering context.
  */
 extern DECLSPEC int SDLCALL SDL_GetRendererInfo(SDL_Renderer * renderer,