Previous: glFinish Table of Contents (GL) Next: glFlushMappedBufferRange

glFlush

force execution of GL commands in finite time

Signature

glFlush( ( void ) )-> void
glFlush( )

Description

Different GL implementations buffer commands in several different locations, including network buffers and the graphics accelerator itself. glFlush empties all of these buffers, causing all issued commands to be executed as quickly as they are accepted by the actual rendering engine. Though this execution may not be completed in any particular time period, it does complete in finite time.
Because any GL program might be executed over a network, or on an accelerator that buffers commands, all programs should call glFlush whenever they count on having all of their previously issued commands completed. For example, call glFlush before waiting for user input that depends on the generated image.

Notes

glFlush can return at any time. It does not wait until the execution of all previously issued GL commands is complete.

See Also

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.

glFlush
OpenGLContext OpenGLContext/context.py Lines: 496
OpenGL-Demo PyOpenGL-Demo/redbook/smooth.py Lines: 82
OpenGL-Demo PyOpenGL-Demo/redbook/movelight.py Lines: 109
OpenGL-Demo PyOpenGL-Demo/redbook/fog.py Lines: 113
OpenGL-Demo PyOpenGL-Demo/redbook/cube.py Lines: 74
OpenGL-Demo PyOpenGL-Demo/redbook/lines.py Lines: 118
OpenGL-Demo PyOpenGL-Demo/redbook/hello.py Lines: 75
OpenGL-Demo PyOpenGL-Demo/redbook/drawf.py Lines: 87
OpenGL-Demo PyOpenGL-Demo/redbook/scene.py Lines: 104
OpenGL-Demo PyOpenGL-Demo/da/dots.py Lines: 61
OpenGL-Demo PyOpenGL-Demo/dek/tile.py Lines: 42
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson26.py Lines: 192
{Artistic License} PymmLib applications/tlsviewer.py Lines: 194, 218
{Artistic License} PymmLib applications/glutviewer.py Lines: 381
{LGPL} PyMT pymt/texture.py Lines: 18, 263, 328
{GPL} GLChess src/lib/gtkui/chessview.py Lines: 177
{GPL} GLChess src/lib/scene/opengl/opengl.py Lines: 441
{LGPL} Pyggel pyggel/__init__.py Lines: 18
{LGPL or GPL or MPL} Kamaelia Code/Python/Kamaelia/Kamaelia/UI/OpenGL/OpenGLDisplay.py Lines: 574, 792
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/Experiments/Cubes.py Lines: 323
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Examples/simplecube/simplecube.py Lines: 87
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/OpenGLDisplay.py Lines: 574, 793
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Sketches/Display3D.py Lines: 519
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Sketches/playground/Display3D.py Lines: 421, 477
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/Display3D.py Lines: 519
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/playground/Display3D.py Lines: 421, 477
{LGPL or GPL or MPL} Kamaelia Sketches/THF/simplecube/simplecube_controlled.py Lines: 148
{LGPL or GPL or MPL} Kamaelia Sketches/THF/simplecube/simplecube.py Lines: 87
{LGPL or GPL or MPL} Kamaelia Sketches/MPS/Old/SoC/simplecube.py Lines: 123
Visvis utils/cropper.py Lines: 413
Visvis core/line.py Lines: 692, 836, 847
Visvis core/axises.py Lines: 2030
Visvis backends/backend_gtk.py Lines: 187
Visvis functions/boxplot.py Lines: 327
Visvis functions/bar.py Lines: 153
Visvis text/text_base.py Lines: 262
Visvis wobjects/textures.py Lines: 546, 788, 1212
Visvis wobjects/sliceTextures.py Lines: 186
Visvis wobjects/polygonalModeling.py Lines: 1063
Visvis wibjects/colorWibjects.py Lines: 688
Previous: glFinish Table of Contents (GL) Next: glFlushMappedBufferRange