|
⇤ ← Revision 1 as of 2011-02-24 20:10:38
Size: 1040
Comment: create page - 2/3 changeset 5166 (2/23 5391)
|
Size: 1048
Comment: update content - w/ Sam; remove draft
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| ||<tablewidth="100%" style="color: #FF0000;" :> DRAFT|| | |
| Line 18: | Line 17: |
| ||'''window'''||^the window containing the rectangle(s)^|| ||'''rects'''||the rectangle(s) to copy|| |
||'''window'''||the window to update|| ||'''rects'''||an array of [[SDL_Rect]] structures representing the areas of the surface to update|| |
| Line 31: | Line 30: |
| ''You can add useful comments here'' | This function is equivalent to the SDL 1.2 API SDL_UpdateRects(). |
| Line 35: | Line 34: |
| .[[SDL_UpdateWindowSurfaceRect]] | .[[SDL_UpdateWindowSurface]] |
SDL_UpdateWindowSurfaceRects
Use this function to copy a number of rectangles on the window surface to the screen.
Contents
Syntax
int SDL_UpdateWindowSurfaceRects(SDL_Window* window,
SDL_Rect* rects,
int numrects)
Function Parameters
window |
the window to update |
rects |
an array of SDL_Rect structures representing the areas of the surface to update |
numrects |
the number of rectangles |
Return Value
Returns 0 on success, or a negative error code on failure; call SDL_GetError() for more information.
Code Examples
You can add your code example here
Remarks
This function is equivalent to the SDL 1.2 API SDL_UpdateRects().
