1SDL_SetClipRect(3) SDL API Reference SDL_SetClipRect(3)
2
3
4
6 SDL_SetClipRect- Sets the clipping rectangle for a surface.
7
9 #include "SDL.h"
10
11 void SDL_SetClipRect(SDL_Surface *surface, SDL_Rect *rect);
12
14 Sets the clipping rectangle for a surface. When this surface is the
15 destination of a blit, only the area within the clip rectangle will be
16 drawn into.
17
18 The rectangle pointed to by rect will be clipped to the edges of the
19 surface so that the clip rectangle for a surface can never fall outside
20 the edges of the surface.
21
22 If rect is NULL the clipping rectangle will be set to the full size of
23 the surface.
24
26 SDL_GetClipRect, SDL_BlitSurface, SDL_Surface
27
28
29
30SDL Tue 11 Sep 2001, 23:01 SDL_SetClipRect(3)