glutPostRedisplay

marks the current or specified window as needing to be redisplayed.

Signature

glutPostRedisplay( )-> void
glutPostRedisplay( )
glutPostRedisplay(  ) -> None
glutPostWindowRedisplay( int( win ) )-> void
glutPostWindowRedisplay( window )
glutPostWindowRedisplay( c_int(window) ) -> None

Description

glutPostRedisplay marks the normal plane of current window as needing to be redisplayed. glutPostWindowRedisplay works the specified window as needing to be redisplayed. After either call, the next iteration through glutMainLoop , the window's display callback will be called to redisplay the window's normal plane. Multiple calls to glutPostRedisplay before the next display callback opportunity generates only a single redisplay callback. glutPostRedisplay may be called within a window's display or overlay display callback to re-mark that window for redisplay.
Logically, normal plane damage notification for a window is treated as a glutPostRedisplay on the damaged window. Unlike damage reported by the window system, glutPostRedisplay will not set to true the normal plane's damaged status (returned by glutLayerGet(GLUT_NORMAL_DAMAGED) .
If the window you want to post a redisplay on is not already current (and you do not require it to be immediately made current), using glutPostWindowRedisplay is more efficient that calling glutSetWindow to the desired window and then calling glutPostRedisplay .

See Also

glutPostOverlayRedisplay 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.

glutPostRedisplay
OpenGL-Demo PyOpenGL-Demo/proesch/simple/simpleInteraction.py Lines: 54, 72, 82, 98, 114
OpenGL-Demo PyOpenGL-Demo/proesch/nurbs/nurbs.py Lines: 50
OpenGL-Demo PyOpenGL-Demo/GLE/maintest.py Lines: 16
OpenGL-Demo PyOpenGL-Demo/GLUT/gears.py Lines: 171, 188, 205
OpenGL-Demo PyOpenGL-Demo/GLUT/glutplane.py Lines: 130, 142, 157, 177
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/checker.py Lines: 89
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/lorentz.py Lines: 96
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/arraytest.py Lines: 74
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/text.py Lines: 90
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/cone.py Lines: 90
OpenGL-Demo PyOpenGL-Demo/redbook/movelight.py Lines: 125
OpenGL-Demo PyOpenGL-Demo/redbook/fog.py Lines: 138
OpenGL-Demo PyOpenGL-Demo/redbook/double.py Lines: 80
{Artistic License} PymmLib pymmlib/applications/glutviewer.py Lines: 387, 487, 492
{LGPL} PyMT pymt/ui/window/win_glut.py Lines: 18, 94
{GPL3} OpenGL-Programmable 05-shader.py Lines: 132, 267, 298
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 149, 286, 317
{GPL3} OpenGL-Programmable 03-array.py Lines: 65, 187, 218
{GPL3} OpenGL-Programmable 09-gles2.py Lines: 179, 329, 360
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 140, 275, 306
{GPL3} OpenGL-Programmable 10-gl3.2core.py Lines: 187, 339, 370
{GPL3} OpenGL-Programmable 02-displaylist.py Lines: 65, 185, 216
{GPL3} OpenGL-Programmable 04-vbo.py Lines: 66, 206, 237
{GPL3} OpenGL-Programmable 01-direct.py Lines: 65, 176, 207
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 160, 308, 339