include/SDL_render.h
changeset 6247 b6212690f78d
parent 6237 240f1bced46b
child 6248 7fe4b2b78acc
     1.1 --- a/include/SDL_render.h	Sat Jan 21 22:22:30 2012 -0500
     1.2 +++ b/include/SDL_render.h	Sun Jan 22 01:26:28 2012 -0500
     1.3 @@ -373,6 +373,25 @@
     1.4  extern DECLSPEC void SDLCALL SDL_UnlockTexture(SDL_Texture * texture);
     1.5  
     1.6  /**
     1.7 + * \brief Determines whether a window supports the use of render targets
     1.8 + *
     1.9 + * \param renderer The renderer that will be checked
    1.10 + *
    1.11 + * \return SDL_TRUE if supported, SDL_FALSE if not.
    1.12 + */
    1.13 +extern DECLSPEC SDL_bool SDLCALL SDL_RenderTargetSupported(SDL_Renderer *renderer);
    1.14 +
    1.15 +/**
    1.16 + * \brief Set a texture as the current rendering target.
    1.17 + *
    1.18 + * \param texture The targeted texture, or NULL for the default render target
    1.19 + *
    1.20 + * \return 0 on success, or -1 on error
    1.21 + */
    1.22 +extern DECLSPEC int SDLCALL SDL_SetRenderTarget(SDL_Renderer *renderer,
    1.23 +                                                SDL_Texture *texture);
    1.24 +
    1.25 +/**
    1.26   *  \brief Set the drawing area for rendering on the current target.
    1.27   *
    1.28   *  \param rect The rectangle representing the drawing area, or NULL to set the viewport to the entire target.
    1.29 @@ -566,30 +585,6 @@
    1.30  
    1.31  
    1.32  /**
    1.33 - * \fn SDL_bool SDL_RenderTargetSupported(SDL_Renderer *renderer)
    1.34 - *
    1.35 - * \brief Determines whether a window supports the use of render targets
    1.36 - *
    1.37 - * \param renderer The renderer that will be checked
    1.38 - *
    1.39 - * \return SDL_TRUE if supported, SDL_FALSE if not.
    1.40 - */
    1.41 -extern DECLSPEC SDL_bool SDLCALL SDL_RenderTargetSupported(SDL_Renderer *renderer);
    1.42 -
    1.43 -/**
    1.44 - * \fn int SDL_SetTargetTexture(SDL_Renderer *renderer, SDL_Texture *texture)
    1.45 - *
    1.46 - * \brief Set a texture as the current rendering target.
    1.47 - *
    1.48 - * \param renderer The renderer that will be checked
    1.49 - *
    1.50 - * \param texture The targeted texture, or NULL for the default render target
    1.51 - *
    1.52 - * \return 0 on success, or -1 if there is no rendering context current, or the driver doesn't support the requested operation.
    1.53 - */
    1.54 -extern DECLSPEC int SDLCALL SDL_SetTargetTexture(SDL_Renderer *renderer, SDL_Texture *texture);
    1.55 -
    1.56 -/**
    1.57   *  \brief Read pixels from the current rendering target.
    1.58   *  
    1.59   *  \param rect   A pointer to the rectangle to read, or NULL for the entire