1.1 --- a/include/SDL_render.h Mon Feb 07 20:05:52 2011 -0800
1.2 +++ b/include/SDL_render.h Mon Feb 07 20:06:26 2011 -0800
1.3 @@ -364,6 +364,18 @@
1.4 extern DECLSPEC void SDLCALL SDL_UnlockTexture(SDL_Texture * texture);
1.5
1.6 /**
1.7 + * \brief Set the clipping rectangle for rendering on the current target
1.8 + *
1.9 + * \param rect The rectangle to clip rendering to, or NULL to disable clipping.
1.10 + *
1.11 + * The contents of the window are not defined after calling
1.12 + * SDL_RenderPresent(), so you should clear the clip rectangle and draw
1.13 + * over the entire window each frame.
1.14 + */
1.15 +extern DECLSPEC void SDLCALL SDL_RenderSetClipRect(SDL_Renderer * renderer,
1.16 + const SDL_Rect * rect);
1.17 +
1.18 +/**
1.19 * \brief Set the color used for drawing operations (Fill and Line).
1.20 *
1.21 * \param r The red value used to draw on the rendering target.