glutSwapBuffers - swaps the buffers of the current window if double buffered.
glutSwapBuffers glutSwapBuffers() -> None
void glutSwapBuffers(void);
Performs a buffer swap on the layer in use for the current window. Specifically, glutSwapBuffers promotes the con- tents of the back buffer of the layer in use of the cur- rent window to become the contents of the front buffer. The contents of the back buffer then become undefined. The update typically takes place during the vertical retrace of the monitor, rather than immediately after glutSwap- Buffers is called. An implicit glFlush is done by glutSwapBuffers before it returns. Subsequent OpenGL commands can be issued immedi- ately after calling glutSwapBuffers, but are not executed until the buffer exchange is completed. If the layer in use is not double buffered, glutSwap- Buffers has no effect.
glutPostRedisplay, glutDisplayFunc
Mark J. Kilgard (mjk@nvidia.com)
:: Documentation :: References :: GLUT ::
:: Index (n/a) ::