glutInit

initialize the GLUT library.

Signature

glutInit( int( argcp ) , char( argv ) )-> void
glutInit( pargc , argv )
Initialise the GLUT library

Parameters

VariablesDescription
argcp
A pointer to the program's unmodified argc variable from main. Upon return, the value pointed to by argcp will be updated, because glutInit extracts any command line options intended for the GLUT library.
argv
The program's unmodified argv variable from main. Like argcp , the data for argv will be updated because glutInit extracts any command line options understood by the GLUT library.

See Also

glutCreateWindow glutInitWindowPosition glutInitWindowSize glutMainLoop

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.

glutInit
OpenGLContext OpenGLContext/glutcontext.py Lines: 30, 167, 171, 174
OpenGLContext OpenGLContext/context.py Lines: 239
OpenGLContext OpenGLContext/glutvrmlcontext.py Lines: 18, 21
OpenGL-Demo PyOpenGL-Demo/GLUT/glutplane.py Lines: 213
OpenGL-Demo PyOpenGL-Demo/GLUT/shader_test.py Lines: 106
OpenGL-Demo PyOpenGL-Demo/GLUT/molehill.py Lines: 59
OpenGL-Demo PyOpenGL-Demo/GLUT/gears.py Lines: 263
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/arraytest.py Lines: 95
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/checker.py Lines: 108
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/text.py Lines: 109
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/conesave.py Lines: 50
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/lorentz.py Lines: 116
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/cone.py Lines: 110
OpenGL-Demo PyOpenGL-Demo/GLE/maintest.py Lines: 34
OpenGL-Demo PyOpenGL-Demo/tom/conechecker.py Lines: 61
OpenGL-Demo PyOpenGL-Demo/tom/checker.py Lines: 37
OpenGL-Demo PyOpenGL-Demo/tom/pick.py Lines: 55
OpenGL-Demo PyOpenGL-Demo/tom/conesave.py Lines: 16
OpenGL-Demo PyOpenGL-Demo/tom/fog.py Lines: 40
OpenGL-Demo PyOpenGL-Demo/tom/cone.py Lines: 12
OpenGL-Demo PyOpenGL-Demo/proesch/nurbs/nurbs.py Lines: 196
OpenGL-Demo PyOpenGL-Demo/redbook/double.py Lines: 107
OpenGL-Demo PyOpenGL-Demo/redbook/lines.py Lines: 130
OpenGL-Demo PyOpenGL-Demo/redbook/cube.py Lines: 88
OpenGL-Demo PyOpenGL-Demo/redbook/teapots.py Lines: 197
OpenGL-Demo PyOpenGL-Demo/redbook/scene.py Lines: 131
OpenGL-Demo PyOpenGL-Demo/redbook/smooth.py Lines: 100
OpenGL-Demo PyOpenGL-Demo/redbook/drawf.py Lines: 106
OpenGL-Demo PyOpenGL-Demo/redbook/fog.py Lines: 149
OpenGL-Demo PyOpenGL-Demo/redbook/movelight.py Lines: 129
OpenGL-Demo PyOpenGL-Demo/redbook/hello.py Lines: 92
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson42.py Lines: 390
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson4.py Lines: 142
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson41.py Lines: 310
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson2.py Lines: 114
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6.py Lines: 178
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson19.py Lines: 231
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson5.py Lines: 190
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson3.py Lines: 119
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson1.py Lines: 92
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson13.py Lines: 177
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson18.py Lines: 251
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson45.py Lines: 479
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6-multi.py Lines: 216
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson23.py Lines: 225
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson11.py Lines: 139
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson12.py Lines: 140
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson16.py Lines: 161
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson26.py Lines: 207
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson48/NeHeGL.py Lines: 119
OpenGL-Demo PyOpenGL-Demo/da/dots.py Lines: 97
OpenGL-Demo py2exe-example/shader_test.py Lines: 108
Glinter Core.py Lines: 845, 849, 863
{Artistic License} PymmLib applications/glutviewer.py Lines: 392
{LGPL} PyUI pyui/renderers/openglGlut.py Lines: 46
{LGPL} PyUI2 renderers/openglGlut.py Lines: 46
{LGPL} PyUI2 system/glutdevice.py Lines: 41
{LGPL} PyMT pymt/ui/window/win_glut.py Lines: 15, 29
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/Utils/TopologyViewer3D.py Lines: 146
{GPL3} OpenGL-Programmable 01-direct.py Lines: 217
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 316
{GPL3} OpenGL-Programmable 09-gles2.py Lines: 370
{GPL3} OpenGL-Programmable 03-array.py Lines: 228
{GPL3} OpenGL-Programmable 10-gl3.2core.py Lines: 380
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 349
{GPL3} OpenGL-Programmable 02-displaylist.py Lines: 226
{GPL3} OpenGL-Programmable 05-shader.py Lines: 308
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 327
{GPL3} OpenGL-Programmable 04-vbo.py Lines: 247