include/SDL_render.h
changeset 7141 e276777b4247
parent 6885 700f1b25f77f
child 7168 b9070b2e868a
     1.1 --- a/include/SDL_render.h	Fri May 03 14:11:41 2013 +0930
     1.2 +++ b/include/SDL_render.h	Sat May 04 04:46:00 2013 -0700
     1.3 @@ -469,6 +469,8 @@
     1.4   *
     1.5   *  The x,y of the viewport rect represents the origin for rendering.
     1.6   *
     1.7 + *  \return 0 on success, or -1 on error
     1.8 + *
     1.9   *  \note When the window is resized, the current viewport is automatically
    1.10   *        centered within the new window size.
    1.11   *
    1.12 @@ -487,6 +489,30 @@
    1.13                                                     SDL_Rect * rect);
    1.14  
    1.15  /**
    1.16 + *  \brief Set the clip rectangle for the current target.
    1.17 + *  
    1.18 + *  \param rect   A pointer to the rectangle to set as the clip rectangle, or
    1.19 + *                NULL to disable clipping.
    1.20 + *
    1.21 + *  \return 0 on success, or -1 on error
    1.22 + *
    1.23 + *  \sa SDL_RenderGetClipRect()
    1.24 + */
    1.25 +extern DECLSPEC int SDLCALL SDL_RenderSetClipRect(SDL_Renderer * renderer,
    1.26 +                                                  const SDL_Rect * rect);
    1.27 +
    1.28 +/**
    1.29 + *  \brief Get the clip rectangle for the current target.
    1.30 + *  
    1.31 + *  \param rect   A pointer filled in with the current clip rectangle, or
    1.32 + *                an empty rectangle if clipping is disabled.
    1.33 + *
    1.34 + *  \sa SDL_RenderSetClipRect()
    1.35 + */
    1.36 +extern DECLSPEC void SDLCALL SDL_RenderGetClipRect(SDL_Renderer * renderer,
    1.37 +                                                   SDL_Rect * rect);
    1.38 +
    1.39 +/**
    1.40   *  \brief Set the drawing scale for rendering on the current target.
    1.41   *
    1.42   *  \param scaleX The horizontal scaling factor