include/SDL_render.h
changeset 5166 4d39eeaad00b
parent 5164 97423d858a1a
child 5216 16d5e8e90e01
     1.1 --- a/include/SDL_render.h	Thu Feb 03 11:16:57 2011 -0800
     1.2 +++ b/include/SDL_render.h	Thu Feb 03 15:49:37 2011 -0800
     1.3 @@ -154,6 +154,7 @@
     1.4   *  
     1.5   *  \return A valid rendering context or NULL if there was an error.
     1.6   *  
     1.7 + *  \sa SDL_CreateSoftwareRenderer()
     1.8   *  \sa SDL_GetRendererInfo()
     1.9   *  \sa SDL_DestroyRenderer()
    1.10   */
    1.11 @@ -161,6 +162,18 @@
    1.12                                                 int index, Uint32 flags);
    1.13  
    1.14  /**
    1.15 + *  \brief Create a 2D software rendering context for a surface.
    1.16 + *  
    1.17 + *  \param surface The surface where rendering is done.
    1.18 + *  
    1.19 + *  \return A valid rendering context or NULL if there was an error.
    1.20 + *  
    1.21 + *  \sa SDL_CreateRenderer()
    1.22 + *  \sa SDL_DestroyRenderer()
    1.23 + */
    1.24 +extern DECLSPEC SDL_Renderer * SDLCALL SDL_CreateSoftwareRenderer(SDL_Surface * surface);
    1.25 +
    1.26 +/**
    1.27   *  \brief Get information about a rendering context.
    1.28   */
    1.29  extern DECLSPEC int SDLCALL SDL_GetRendererInfo(SDL_Renderer * renderer,