glutInitDisplayMode

sets the initial display mode.

Signature

glutInitDisplayMode( unsigned int( mode ) )-> void
glutInitDisplayMode( displayMode )
glutInitDisplayMode( c_uint(displayMode) ) -> None

Parameters

VariablesDescription
mode
Display mode, normally the bitwise OR-ing of GLUT display mode bit masks. See values below:

See Also

glutInit glutCreateWindow glutInitDisplayString

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.

glutInitDisplayMode
OpenGLContext OpenGLContext/glutcontext.py Lines: 29, 36
OpenGL-Demo PyOpenGL-Demo/GLUT/glutplane.py Lines: 217
OpenGL-Demo PyOpenGL-Demo/GLUT/shader_test.py Lines: 113
OpenGL-Demo PyOpenGL-Demo/GLUT/molehill.py Lines: 60
OpenGL-Demo PyOpenGL-Demo/GLUT/gears.py Lines: 264
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/arraytest.py Lines: 96
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/checker.py Lines: 109
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/text.py Lines: 110
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/conesave.py Lines: 51
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/lorentz.py Lines: 117
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/cone.py Lines: 111
OpenGL-Demo PyOpenGL-Demo/GLE/maintest.py Lines: 35
OpenGL-Demo PyOpenGL-Demo/proesch/nurbs/nurbs.py Lines: 197
OpenGL-Demo PyOpenGL-Demo/proesch/stereo/stereoDemo.py Lines: 151, 153
OpenGL-Demo PyOpenGL-Demo/redbook/double.py Lines: 108
OpenGL-Demo PyOpenGL-Demo/redbook/lines.py Lines: 131
OpenGL-Demo PyOpenGL-Demo/redbook/cube.py Lines: 89
OpenGL-Demo PyOpenGL-Demo/redbook/teapots.py Lines: 198
OpenGL-Demo PyOpenGL-Demo/redbook/scene.py Lines: 132
OpenGL-Demo PyOpenGL-Demo/redbook/smooth.py Lines: 101
OpenGL-Demo PyOpenGL-Demo/redbook/drawf.py Lines: 107
OpenGL-Demo PyOpenGL-Demo/redbook/fog.py Lines: 150
OpenGL-Demo PyOpenGL-Demo/redbook/movelight.py Lines: 130
OpenGL-Demo PyOpenGL-Demo/redbook/hello.py Lines: 93
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson42.py Lines: 397
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson4.py Lines: 149
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson41.py Lines: 317
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson2.py Lines: 121
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6.py Lines: 185
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson19.py Lines: 238
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson5.py Lines: 197
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson3.py Lines: 126
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson1.py Lines: 99
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson13.py Lines: 184
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson18.py Lines: 258
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson45.py Lines: 486
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6-multi.py Lines: 223
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson23.py Lines: 232
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson11.py Lines: 146
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson12.py Lines: 147
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson16.py Lines: 168
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson26.py Lines: 214
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson48/NeHeGL.py Lines: 126
OpenGL-Demo PyOpenGL-Demo/da/dots.py Lines: 98
OpenGL-Demo py2exe-example/shader_test.py Lines: 115
Glinter Core.py Lines: 850
{Artistic License} PymmLib applications/glutviewer.py Lines: 396, 398
{LGPL} PyUI pyui/renderers/openglGlut.py Lines: 47
{LGPL} PyUI2 renderers/openglGlut.py Lines: 47
{LGPL} PyUI2 system/glutdevice.py Lines: 42
{LGPL} PyMT pymt/ui/window/win_glut.py Lines: 15, 31, 33
{GPL3} OpenGL-Programmable 01-direct.py Lines: 219
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 318
{GPL3} OpenGL-Programmable 09-gles2.py Lines: 372
{GPL3} OpenGL-Programmable 03-array.py Lines: 230
{GPL3} OpenGL-Programmable 10-gl3.2core.py Lines: 382
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 351
{GPL3} OpenGL-Programmable 02-displaylist.py Lines: 228
{GPL3} OpenGL-Programmable 05-shader.py Lines: 310
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 329
{GPL3} OpenGL-Programmable 04-vbo.py Lines: 249