Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2011-02-24 20:10:38
Size: 1040
Editor: SheenaSmith
Comment: create page - 2/3 changeset 5166 (2/23 5391)
Revision 2 as of 2011-04-22 17:26:54
Size: 1048
Editor: SheenaSmith
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.

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().


CategoryAPI, CategoryVideo

None: SDL_UpdateWindowSurfaceRects (last edited 2014-11-26 20:57:16 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit