Query: glutswapbuffers
OS: centos
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
UNTITLEDLOCAL UNTITLEDNAMEglutSwapBuffers -- Swaps the buffers for the current window.LIBRARYOpenGLUT - windowSYNOPSIS#include <openglut.h> void glutSwapBuffers(void);DESCRIPTIONThis function signals to OpenGLUT that you are done drawing to the current window for now. If your window is double-buffered ( GLUT_DOU- BLE 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 stderr if indicated by the GLUT_FPS environment variable. The com- puted 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.CAVEATSThis function has no effect if your window is GLUT_SINGLE . Frame rate is only calculated for double-buffered windows.TODOHow does this interact with overlays? Consider making GLUT_FPS keep per-window stats in a multi-window program.SEE ALSOglutPostRedisplay(3) glutPostOverlayRedisplay(3) glutPostWindowRedisplay(3) glutPostWindowOverlayRedisplay(3) glutInitDisplaymode(3) Epoch
Related Man Pages |
---|
glutinitdisplaymode(3) - centos |
glutpopwindow(3) - centos |
glutsetwindow(3) - centos |
glutsetoption(3) - centos |
glutpostredisplay(3glut) - suse |
Similar Topics in the Unix Linux Community |
---|
Performance stats from AIX 6 |