glutDisplayFunc

sets the display callback for the current window.

Signature

glutDisplayFunc( )-> void
glutDisplayFunc( function )
Specify handler for GLUT 'Display' events
    def handler(  ):
        return None

Parameters

VariablesDescription
func
The new display callback function.

See Also

glutCreateMenu glutPostRedisplay glutOverlayDisplayFunc

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.

glutDisplayFunc
OpenGLContext OpenGLContext/glutcontext.py Lines: 85, 87, 137
OpenGL-Demo PyOpenGL-Demo/GLUT/glutplane.py Lines: 220
OpenGL-Demo PyOpenGL-Demo/GLUT/shader_test.py Lines: 129
OpenGL-Demo PyOpenGL-Demo/GLUT/molehill.py Lines: 175
OpenGL-Demo PyOpenGL-Demo/GLUT/gears.py Lines: 271
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/arraytest.py Lines: 98
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/checker.py Lines: 111
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/text.py Lines: 112
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/conesave.py Lines: 53
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/lorentz.py Lines: 120
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/cone.py Lines: 113
OpenGL-Demo PyOpenGL-Demo/GLE/maintest.py Lines: 32, 37
OpenGL-Demo PyOpenGL-Demo/proesch/nurbs/nurbs.py Lines: 202
OpenGL-Demo PyOpenGL-Demo/redbook/double.py Lines: 113
OpenGL-Demo PyOpenGL-Demo/redbook/lines.py Lines: 136
OpenGL-Demo PyOpenGL-Demo/redbook/cube.py Lines: 94
OpenGL-Demo PyOpenGL-Demo/redbook/teapots.py Lines: 203
OpenGL-Demo PyOpenGL-Demo/redbook/scene.py Lines: 138
OpenGL-Demo PyOpenGL-Demo/redbook/smooth.py Lines: 108
OpenGL-Demo PyOpenGL-Demo/redbook/drawf.py Lines: 114
OpenGL-Demo PyOpenGL-Demo/redbook/fog.py Lines: 156
OpenGL-Demo PyOpenGL-Demo/redbook/movelight.py Lines: 135
OpenGL-Demo PyOpenGL-Demo/redbook/hello.py Lines: 98
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson42.py Lines: 412
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson4.py Lines: 165
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson41.py Lines: 333
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson2.py Lines: 137
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6.py Lines: 201
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson19.py Lines: 254
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson5.py Lines: 213
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson3.py Lines: 142
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson1.py Lines: 115
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson13.py Lines: 200
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson18.py Lines: 274
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson45.py Lines: 502
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6-multi.py Lines: 239
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson23.py Lines: 248
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson11.py Lines: 162
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson12.py Lines: 163
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson16.py Lines: 184
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson26.py Lines: 230
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson48/NeHeGL.py Lines: 142
OpenGL-Demo PyOpenGL-Demo/da/dots.py Lines: 103
OpenGL-Demo py2exe-example/shader_test.py Lines: 131
Glinter Core.py Lines: 610
{Artistic License} PymmLib applications/glutviewer.py Lines: 404
{LGPL} PyUI pyui/renderers/openglGlut.py Lines: 168, 171
{LGPL} PyUI2 renderers/openglGlut.py Lines: 168, 171
{LGPL} PyUI2 system/glutdevice.py Lines: 77
{LGPL} PyMT pymt/ui/window/win_glut.py Lines: 17, 97
{GPL3} OpenGL-Programmable 01-direct.py Lines: 224
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 323
{GPL3} OpenGL-Programmable 09-gles2.py Lines: 377
{GPL3} OpenGL-Programmable 03-array.py Lines: 235
{GPL3} OpenGL-Programmable 10-gl3.2core.py Lines: 387
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 356
{GPL3} OpenGL-Programmable 02-displaylist.py Lines: 233
{GPL3} OpenGL-Programmable 05-shader.py Lines: 315
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 334
{GPL3} OpenGL-Programmable 04-vbo.py Lines: 254