glutSwapBuffers - Man Page
Swaps the buffers for the current window.
OpenGLUT - window
This function signals to OpenGLUT that you are done drawing to the
for now. If your window is double-buffered (
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
if indicated by the
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.
This function has no effect if your window is
Frame rate is only calculated for double-buffered windows.
How does this interact with overlays?
keep per-window stats in a multi-window program.
glutPostRedisplay(3) glutPostOverlayRedisplay(3) glutPostWindowRedisplay(3) glutPostWindowOverlayRedisplay(3) glutInitDisplaymode(3)
glutInit(3), glutInitDisplayMode(3), glutPostRedisplay(3), glutPostWindowRedisplay(3).