NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
REL="HOME"
TITLE="SDL Library Documentation"
REL="UP"
TITLE="Video"
REL="PREVIOUS"
TITLE="SDL_UpdateRect"
HREF="sdlupdaterect.html"><
LINK
REL="NEXT"
TITLE="SDL_Flip"
HREF="sdlflip.html"><
/HEAD
CLASS="REFENTRY"
BGCOLOR="#FFF8DC"
TEXT="#000000"
LINK="#0000ee"
VLINK="#551a8b"
ALINK="#ff0000"
CLASS="NAVHEADER"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
COLSPAN="3"
ALIGN="center"
>SDL Library Documentation<
/TH
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
HREF="sdlupdaterect.html"
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
HREF="sdlflip.html"
ALIGN="LEFT"
NAME="SDLUPDATERECTS"
CLASS="REFNAMEDIV"
NAME="AEN977"
>SDL_UpdateRects -- Makes sure the given list of rectangles is updated on the given screen.<
/DIV
CLASS="REFSYNOPSISDIV"
NAME="AEN980"
CLASS="FUNCSYNOPSIS"
NAME="AEN981"
CLASS="FUNCSYNOPSISINFO"
CLASS="FUNCDEF"
CLASS="FSFUNC"
>
(SDL_Surface *screen, int numrects, SDL_Rect *rects
);<
/CODE
CLASS="REFSECT1"
NAME="AEN987"
>Makes sure the given list of rectangles is updated on the given screen.
The rectangles must all be confined within the screen boundaries (no
>This function should not be called while <
TT
CLASS="PARAMETER"
> is
HREF="sdllocksurface.html"
CLASS="NOTE"
CLASS="NOTE"
>It is adviced to call this function only once per frame, since each
call has some processing overhead. This is no restriction since you
can pass any number of rectangles each time.<
/P
>The rectangles are not automatically merged or checked for overlap. In
general, the programmer can use his knowledge about his particular
rectangles to merge them in an efficient way, to avoid overdraw.<
/P
CLASS="REFSECT1"
NAME="AEN996"
HREF="sdlupdaterect.html"
CLASS="FUNCTION"
>,
HREF="sdlrect.html"
CLASS="STRUCTNAME"
>,
HREF="sdlsurface.html"
CLASS="STRUCTNAME"
>,
HREF="sdllocksurface.html"
CLASS="FUNCTION"
CLASS="NAVFOOTER"
ALIGN="LEFT"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
WIDTH="33%"
ALIGN="left"
VALIGN="top"
HREF="sdlupdaterect.html"
WIDTH="34%"
ALIGN="center"
VALIGN="top"
HREF="index.html"
WIDTH="33%"
ALIGN="right"
VALIGN="top"
HREF="sdlflip.html"
WIDTH="33%"
ALIGN="left"
VALIGN="top"
WIDTH="34%"
ALIGN="center"
VALIGN="top"
HREF="video.html"
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>