1SDL_GetClipRect(3) SDL API Reference SDL_GetClipRect(3)
2
3
4
6 SDL_GetClipRect - Gets the clipping rectangle for a surface.
7
9 #include "SDL.h"
10
11 void SDL_GetClipRect(SDL_Surface *surface, SDL_Rect *rect);
12
14 Gets the clipping rectangle for a surface. When this surface is the
15 destination of a blit, only the area within the clip rectangle is drawn
16 into.
17
18 The rectangle pointed to by rect will be filled with the clipping rec‐
19 tangle of the surface.
20
22 SDL_SetClipRect, SDL_BlitSurface, SDL_Surface
23
24
25
26SDL Tue 11 Sep 2001, 23:01 SDL_GetClipRect(3)