Rechercher une page de manuel
glutSwapBuffers
Langue: en
Version: 162737 (fedora - 05/07/09)
Section: 3 (Bibliothèques de fonctions)
BSD mandoc
NAME
glutSwapBuffers - Swaps the buffers for the current window.LIBRARY
OpenGLUT - windowSYNOPSIS
In openglut.h Ft void Fn glutSwapBuffers voidDESCRIPTION
This function signals to OpenGLUT that you are done drawing to the Bf Licurrent window Ef
for now. If your window is double-buffered ( Bf Sy
GLUT_DOUBLE Ef
param to glutInitDisplayMode()), then OpenGLUT will swap the front buffer with the back buffer.
This also computes your current frame-rate and prints the result on Bf Sy
stderr Ef
if indicated by the Bf Sy
GLUT_FPS Ef
environment variable. The computed value is not necessarily the total frame rate, if you have multiple windows, as the statistic is the total number of buffer-swaps for the entire program.
CAVEATS
This function has no effect if your window is Bf SyGLUT_SINGLE Ef
.
Frame rate is only calculated for double-buffered windows.
TODO
How does this interact with overlays?Consider making Bf Sy
GLUT_FPS Ef
keep per-window stats in a multi-window program.
SEE ALSO
glutPostRedisplay(3) glutPostOverlayRedisplay(3) glutPostWindowRedisplay(3) glutPostWindowOverlayRedisplay(3) glutInitDisplaymode(3)Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre