glutSwapBuffers

swaps the buffers of the current window if double buffered.

Signature

glutSwapBuffers( )-> void
glutSwapBuffers( )
glutSwapBuffers(  ) -> None

See Also

glutPostRedisplay glutDisplayFunc

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glutSwapBuffers
OpenGLContext OpenGLContext/glutcontext.py Lines: 163
OpenGL-Demo PyOpenGL-Demo/GLUT/glutplane.py Lines: 92
OpenGL-Demo PyOpenGL-Demo/GLUT/shader_test.py Lines: 94
OpenGL-Demo PyOpenGL-Demo/GLUT/molehill.py Lines: 47
OpenGL-Demo PyOpenGL-Demo/GLUT/gears.py Lines: 164
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/arraytest.py Lines: 71
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/checker.py Lines: 86
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/text.py Lines: 87
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/lorentz.py Lines: 93
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/cone.py Lines: 87
OpenGL-Demo PyOpenGL-Demo/GLE/texas.py Lines: 55
OpenGL-Demo PyOpenGL-Demo/GLE/helix.py Lines: 26
OpenGL-Demo PyOpenGL-Demo/GLE/cone.py Lines: 30
OpenGL-Demo PyOpenGL-Demo/proesch/nurbs/nurbs.py Lines: 160
OpenGL-Demo PyOpenGL-Demo/redbook/double.py Lines: 75
OpenGL-Demo PyOpenGL-Demo/redbook/teapots.py Lines: 178
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson42.py Lines: 355
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson4.py Lines: 132
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson41.py Lines: 279
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson2.py Lines: 102
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6.py Lines: 168
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson19.py Lines: 187
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson5.py Lines: 180
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson3.py Lines: 107
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson1.py Lines: 80
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson13.py Lines: 162
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson18.py Lines: 227
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson45.py Lines: 460
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6-multi.py Lines: 206
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson23.py Lines: 207
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson11.py Lines: 127
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson12.py Lines: 128
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson16.py Lines: 151
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson26.py Lines: 195
OpenGL-Demo PyOpenGL-Demo/da/dots.py Lines: 62
OpenGL-Demo py2exe-example/shader_test.py Lines: 95
Glinter Widget.py Lines: 109
{Artistic License} PymmLib applications/glutviewer.py Lines: 379
{LGPL} PyUI pyui/renderers/openglGlut.py Lines: 91
{LGPL} PyUI2 renderers/openglGlut.py Lines: 91
{LGPL} PyUI2 system/glutdevice.py Lines: 201
{LGPL} PyMT pymt/ui/window/win_glut.py Lines: 18, 75
{GPL3} OpenGL-Programmable 01-direct.py Lines: 138
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 242
{GPL3} OpenGL-Programmable 09-gles2.py Lines: 296
{GPL3} OpenGL-Programmable 03-array.py Lines: 149
{GPL3} OpenGL-Programmable 10-gl3.2core.py Lines: 306
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 275
{GPL3} OpenGL-Programmable 02-displaylist.py Lines: 147
{GPL3} OpenGL-Programmable 05-shader.py Lines: 234
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 253
{GPL3} OpenGL-Programmable 04-vbo.py Lines: 168