Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Thursday, June 13, 2019
 
 

SDL_UpdateRect (3)

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

SDL_UpdateRect(3)              SDL API Reference             SDL_UpdateRect(3)



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


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+------------------+
       |ATTRIBUTE TYPE | ATTRIBUTE VALUE  |
       +---------------+------------------+
       |Availability   | library/sdl      |
       +---------------+------------------+
       |Stability      | Volatile         |
       +---------------+------------------+
SEE ALSO
       SDL_UpdateRects, SDL_Rect, SDL_Surface, SDL_LockSurface



NOTES
       This     software     was    built    from    source    available    at
       https://github.com/oracle/solaris-userland.   The  original   community
       source        was        downloaded        from        https://www.lib-
       sdl.org/release/SDL-1.2.15.tar.gz

       Further information about this software can be found on the open source
       community website at https://www.libsdl.org/.



SDL                         Tue 11 Sep 2001, 23:01           SDL_UpdateRect(3)