1SDL_Flip(3)                    SDL API Reference                   SDL_Flip(3)
2
3
4

NAME

6       SDL_Flip - Swaps screen buffers
7

SYNOPSIS

9       #include "SDL.h"
10
11       int SDL_Flip(SDL_Surface *screen);
12

DESCRIPTION

14       On  hardware  that  supports  double-buffering, this function sets up a
15       flip and returns. The hardware will wait for vertical retrace, and then
16       swap  video  buffers  before  the  next video surface blit or lock will
17       return. On hardware that  doesn't  support  double-buffering,  this  is
18       equivalent to calling SDL_UpdateRect(screen, 0, 0, 0, 0)
19
20       The  SDL_DOUBLEBUF flag must have been passed to SDL_SetVideoMode, when
21       setting the video mode for this function to perform hardware flipping.
22

RETURN VALUE

24       This function returns 0 if successful, or -1 if there was an error.
25

SEE ALSO

27       SDL_SetVideoMode, SDL_UpdateRect, SDL_Surface
28
29
30
31SDL                         Tue 11 Sep 2001, 23:01                 SDL_Flip(3)
Impressum