glutMainLoop

enters the GLUT event processing loop.

Signature

glutMainLoop( )-> void
glutMainLoop( )
glutMainLoop(  ) -> None

Description

glutMainLoop enters the GLUT event processing loop. This routine should be called at most once in a GLUT program. Once called, this routine will never return. It will call as necessary any callbacks that have been registered.

See Also

glutInit

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.

glutMainLoop
OpenGLContext OpenGLContext/glutvrmlcontext.py Lines: 24
OpenGLContext OpenGLContext/glutcontext.py Lines: 167, 178
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson11.py Lines: 183
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson18.py Lines: 295
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6.py Lines: 221
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson41.py Lines: 362
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson16.py Lines: 204
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson23.py Lines: 264
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson5.py Lines: 233
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson4.py Lines: 185
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson26.py Lines: 250
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson12.py Lines: 184
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson3.py Lines: 162
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson13.py Lines: 221
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson1.py Lines: 135
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson19.py Lines: 276
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson42.py Lines: 432
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson2.py Lines: 157
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6-multi.py Lines: 259
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson45.py Lines: 514
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson48/NeHeGL.py Lines: 173
OpenGL-Demo PyOpenGL-Demo/proesch/nurbs/nurbs.py Lines: 207
OpenGL-Demo PyOpenGL-Demo/da/dots.py Lines: 107
OpenGL-Demo PyOpenGL-Demo/GLE/maintest.py Lines: 67
OpenGL-Demo PyOpenGL-Demo/GLUT/gears.py Lines: 283
OpenGL-Demo PyOpenGL-Demo/GLUT/shader_test.py Lines: 147
OpenGL-Demo PyOpenGL-Demo/GLUT/glutplane.py Lines: 251
OpenGL-Demo PyOpenGL-Demo/GLUT/molehill.py Lines: 185
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/conesave.py Lines: 58
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/checker.py Lines: 116
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/lorentz.py Lines: 122
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/arraytest.py Lines: 102
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/text.py Lines: 116
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/cone.py Lines: 117
OpenGL-Demo PyOpenGL-Demo/redbook/hello.py Lines: 101
OpenGL-Demo PyOpenGL-Demo/redbook/scene.py Lines: 141
OpenGL-Demo PyOpenGL-Demo/redbook/drawf.py Lines: 115
OpenGL-Demo PyOpenGL-Demo/redbook/lines.py Lines: 142
OpenGL-Demo PyOpenGL-Demo/redbook/movelight.py Lines: 141
OpenGL-Demo PyOpenGL-Demo/redbook/smooth.py Lines: 108
OpenGL-Demo PyOpenGL-Demo/redbook/fog.py Lines: 156
OpenGL-Demo PyOpenGL-Demo/redbook/double.py Lines: 114
OpenGL-Demo PyOpenGL-Demo/redbook/teapots.py Lines: 207
OpenGL-Demo PyOpenGL-Demo/redbook/cube.py Lines: 99
OpenGL-Demo py2exe-example/shader_test.py Lines: 150
{Artistic License} PymmLib pymmlib/applications/glutviewer.py Lines: 413
{LGPL} PyUI2 renderers/openglGlut.py Lines: 174
{LGPL} PyUI2 system/glutdevice.py Lines: 80
{LGPL} PyMT pymt/ui/window/win_glut.py Lines: 19, 100
{GPL3} OpenGL-Programmable 05-shader.py Lines: 347
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 366
{GPL3} OpenGL-Programmable 03-array.py Lines: 276
{GPL3} OpenGL-Programmable 09-gles2.py Lines: 407
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 355
{GPL3} OpenGL-Programmable 10-gl3.2core.py Lines: 417
{GPL3} OpenGL-Programmable 02-displaylist.py Lines: 274
{GPL3} OpenGL-Programmable 04-vbo.py Lines: 295
{GPL3} OpenGL-Programmable 01-direct.py Lines: 265
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 388