1SDL_UpdateRects(3)             SDL API Reference            SDL_UpdateRects(3)
2
3
4

NAME

6       SDL_UpdateRects - Makes sure the given list of rectangles is updated on
7       the given screen.
8

SYNOPSIS

10       #include "SDL.h"
11
12       void  SDL_UpdateRects(SDL_Surface  *screen,  int   numrects,   SDL_Rect
13       *rects);
14

DESCRIPTION

16       Makes sure the given list of rectangles is updated on the given screen.
17       The rectangles must all be confined within the  screen  boundaries  (no
18       clipping is done).
19
20       This function should not be called while screen is locked.
21
22              Note:
23
24              It  is  adviced to call this function only once per frame, since
25              each call has some processing overhead. This is  no  restriction
26              since you can pass any number of rectangles each time.
27
28              The rectangles are not automatically merged or checked for over‐
29              lap. In general, the programmer can use his knowledge about  his
30              particular  rectangles  to  merge  them  in an efficient way, to
31              avoid overdraw.
32

SEE ALSO

34       SDL_UpdateRect, SDL_Rect, SDL_Surface, SDL_LockSurface
35
36
37
38SDL                         Tue 11 Sep 2001, 23:01          SDL_UpdateRects(3)
Impressum