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.

Version Support

glFlush

See Also

Copyright

Copyright
1991-2006 Silicon Graphics, Inc. Copyright
2010-2014 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see .

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: 517
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson26.py Lines: 194
OpenGL-Demo PyOpenGL-Demo/dek/tile.py Lines: 43
OpenGL-Demo PyOpenGL-Demo/da/dots.py Lines: 61
OpenGL-Demo PyOpenGL-Demo/redbook/hello.py Lines: 77
OpenGL-Demo PyOpenGL-Demo/redbook/scene.py Lines: 106
OpenGL-Demo PyOpenGL-Demo/redbook/drawf.py Lines: 86
OpenGL-Demo PyOpenGL-Demo/redbook/lines.py Lines: 121
OpenGL-Demo PyOpenGL-Demo/redbook/movelight.py Lines: 111
OpenGL-Demo PyOpenGL-Demo/redbook/smooth.py Lines: 81
OpenGL-Demo PyOpenGL-Demo/redbook/fog.py Lines: 112
OpenGL-Demo PyOpenGL-Demo/redbook/cube.py Lines: 76
{Artistic License} PymmLib pymmlib/applications/glutviewer.py Lines: 381
{Artistic License} PymmLib pymmlib/applications/tlsviewer.py Lines: 198, 222
{LGPL} PyMT pymt/texture.py Lines: 18, 263, 328
{LGPL} Pyggel pyggel/__init__.py Lines: 18
{LGPL or GPL or MPL} Kamaelia Code/Python/Kamaelia/Kamaelia/UI/OpenGL/OpenGLDisplay.py Lines: 592, 815
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/Experiments/Cubes.py Lines: 342
{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/Examples/simplecube/simplecube.py Lines: 104
{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/MPS/Old/SoC/simplecube.py Lines: 141
{LGPL or GPL or MPL} Kamaelia Sketches/THF/simplecube/simplecube_controlled.py Lines: 165
{LGPL or GPL or MPL} Kamaelia Sketches/THF/simplecube/simplecube.py Lines: 104
{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
Visvis wobjects/polygonalModeling.py Lines: 1068
Visvis wobjects/textures.py Lines: 549, 791, 1215
Visvis wobjects/sliceTextures.py Lines: 186
Visvis text/text_base.py Lines: 263
Visvis functions/boxplot.py Lines: 334
Visvis functions/bar.py Lines: 179
Visvis wibjects/colorWibjects.py Lines: 688
Visvis backends/backend_gtk.py Lines: 191
Visvis utils/cropper.py Lines: 409
Visvis core/line.py Lines: 695, 841, 852
Visvis core/axises.py Lines: 2030