SDL_UpdateRect

Name

SDL_UpdateRect -- Makes sure the given area is updated on the given screen.

Synopsis

#include "SDL.h"

void SDL_UpdateRect(SDL_Surface *screen, Sint32 x, Sint32 y, Sint32 w, Sint32 h);

Description

Makes sure the given area is updated on the given screen. (In other words, it makes sure any changes to the given area of the screen are made visible)

The rectangle must be confined within the screen boundaries (no clipping is done).

If 'x', 'y', 'w' and 'h' are all 0, SDL_UpdateRect will update the entire screen.

This function should not be called while 'screen' is locked (SDL_LockSurface).

Return Value

Returns nothing.

Example

See Also

SDL_UpdateRects, SDL_Rect, SDL_Surface, SDL_LockSurface

SDL_UpdateRect (last edited 2008-04-17 08:18:56 by localhost)