glLoadIdentity

replace the current matrix with the identity matrix

Signature

glLoadIdentity( ( void ) )-> void
glLoadIdentity( )

Description

glLoadIdentity replaces the current matrix with the identity matrix. It is semantically equivalent to calling glLoadMatrix with the identity matrix
1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1
but in some cases it is more efficient.

Errors

GL_INVALID_OPERATION is generated if glLoadIdentity is executed between the execution of glBegin and the corresponding execution of glEnd .

Associated Gets

glGet with argument GL_MATRIX_MODE
glGet with argument GL_COLOR_MATRIX
glGet with argument GL_MODELVIEW_MATRIX
glGet with argument GL_PROJECTION_MATRIX
glGet with argument GL_TEXTURE_MATRIX

See Also

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.

glLoadIdentity
OpenGLContext OpenGLContext/framecounter.py Lines: 62, 65, 76
OpenGLContext OpenGLContext/scenegraph/imagetexture.py Lines: 103
OpenGLContext OpenGLContext/move/viewplatform.py Lines: 139, 143
OpenGLContext OpenGLContext/shadow/shadowcontext.py Lines: 21
OpenGLContext OpenGLContext/passes/flatcompat.py Lines: 77
OpenGLContext OpenGLContext/passes/renderpass.py Lines: 542
OpenGLContext OpenGLContext/passes/rendervisitor.py Lines: 213, 317, 319
OpenGLContext tests/glhistogram.py Lines: 55, 59
OpenGLContext tests/nehe5.py Lines: 31
OpenGLContext tests/gldrawpixelssynth.py Lines: 49, 53
OpenGLContext tests/boundingvolume.py Lines: 72, 81
OpenGLContext tests/glutbitmapcharacter.py Lines: 17, 21
OpenGLContext tests/gldrawpixels.py Lines: 69, 73
OpenGLContext tests/nehe4.py Lines: 64
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson11.py Lines: 54, 67, 79
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson18.py Lines: 117, 137, 189
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6.py Lines: 93, 106, 115
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson41.py Lines: 210, 216, 224
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson16.py Lines: 58, 71, 80
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson23.py Lines: 73, 86, 145
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson5.py Lines: 71, 84, 93, 131
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson4.py Lines: 68, 81, 91, 111
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson26.py Lines: 74, 87, 144
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson12.py Lines: 50, 63, 119
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson3.py Lines: 58, 71, 79
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson13.py Lines: 130, 136, 149
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson1.py Lines: 58, 71, 79
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson19.py Lines: 122, 135, 144
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson42.py Lines: 267, 275, 283, 291, 296, 358, 364
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson2.py Lines: 58, 71, 79
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6-multi.py Lines: 128, 141, 152
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson45.py Lines: 360, 366, 375
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson44/glFont.py Lines: 77, 81
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson44/lesson44.py Lines: 216, 223, 345, 360
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson43/lesson43.py Lines: 88, 94, 104, 120
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson43/glFreeType.py Lines: 191, 293
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson48/Lesson48.py Lines: 129, 138
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson48/NeHeGL.py Lines: 93, 100
OpenGL-Demo PyOpenGL-Demo/proesch/stereo/stereoDemo.py Lines: 65, 68
OpenGL-Demo PyOpenGL-Demo/proesch/bezier/bezier.py Lines: 91, 95
OpenGL-Demo PyOpenGL-Demo/proesch/nurbs/nurbs.py Lines: 144, 148
OpenGL-Demo PyOpenGL-Demo/da/dots.py Lines: 89
OpenGL-Demo PyOpenGL-Demo/GLUT/gears.py Lines: 213, 216
OpenGL-Demo PyOpenGL-Demo/GLUT/shader_test.py Lines: 32, 74, 82
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/checker.py Lines: 61, 72
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/lorentz.py Lines: 71, 80
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/arraytest.py Lines: 61, 66
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/text.py Lines: 54, 65
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/cone.py Lines: 63, 74
OpenGL-Demo PyOpenGL-Demo/redbook/hello.py Lines: 85
OpenGL-Demo PyOpenGL-Demo/redbook/scene.py Lines: 112, 120
OpenGL-Demo PyOpenGL-Demo/redbook/drawf.py Lines: 92
OpenGL-Demo PyOpenGL-Demo/redbook/lines.py Lines: 126
OpenGL-Demo PyOpenGL-Demo/redbook/movelight.py Lines: 116, 119
OpenGL-Demo PyOpenGL-Demo/redbook/smooth.py Lines: 87
OpenGL-Demo PyOpenGL-Demo/redbook/fog.py Lines: 117, 123
OpenGL-Demo PyOpenGL-Demo/redbook/double.py Lines: 89, 92
OpenGL-Demo PyOpenGL-Demo/redbook/teapots.py Lines: 185
OpenGL-Demo PyOpenGL-Demo/redbook/cube.py Lines: 71, 81
OpenGL-Demo py2exe-example/shader_test.py Lines: 33, 75, 83
{Artistic License} PymmLib pymmlib/applications/glutviewer.py Lines: 164, 176
{Artistic License} PymmLib pymmlib/mmLib/OpenGLDriver.py Lines: 146, 158
{LGPL} PyUI2 renderers/openglGlut.py Lines: 231
{LGPL} PyUI2 renderers/openglBase.py Lines: 309, 314, 344
{LGPL} PyUI2 renderers/openglPygame.py Lines: 186, 190
{LGPL} PyUI2 system/openglgraphics.py Lines: 187, 192, 213
{LGPL} PyUI2 system/glutdevice.py Lines: 172
{LGPL} VisionEgg VisionEgg/Core.py Lines: 1075
{LGPL} VisionEgg test/conform.py Lines: 162, 174, 187, 200, 216
{LGPL} PyMT examples/apps/3Ddrawing/3Ddrawing.py Lines: 38, 43, 102, 110
{LGPL} PyMT examples/apps/3Dviewer/3Dviewer.py Lines: 47, 52, 83, 155
{LGPL} PyMT pymt/ui/window/__init__.py Lines: 19, 455, 467
{LGPL} PyMT pymt/graphx/statement.py Lines: 54, 178
{LGPL} Pyggel pyggel/view.py Lines: 281, 286, 300, 304
{LGPL} Pyggel pyggel/data.py Lines: 549, 553, 611, 615
{LGPL} pygl2d pygl2d/display.py Lines: 49, 59, 63
{GPL} Scocca scocca/graphics/opengl/matrix.py Lines: 26
{LGPL or GPL or MPL} Kamaelia Code/Python/Kamaelia/Kamaelia/UI/OpenGL/OpenGLDisplay.py Lines: 480, 789
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/Utils/Particles3D.py Lines: 351
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/Utils/TopologyViewer3D.py Lines: 661
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/Experiments/Cubes.py Lines: 56, 63, 178, 319
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/Experiments/Spheres.py Lines: 40, 43, 117
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/OpenGLDisplay.py Lines: 479, 772
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Examples/simplecube/simplecube.py Lines: 39, 43
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Sketches/Display3D.py Lines: 146
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Sketches/playground/Display3D.py Lines: 151, 457
{LGPL or GPL or MPL} Kamaelia Sketches/MPS/Old/SoC/simplecube.py Lines: 68, 72
{LGPL or GPL or MPL} Kamaelia Sketches/THF/simplecube/simplecube_controlled.py Lines: 91, 95
{LGPL or GPL or MPL} Kamaelia Sketches/THF/simplecube/simplecube.py Lines: 39, 43
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/Display3D.py Lines: 146
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/playground/Display3D.py Lines: 151, 457
Gloopy gloopy/view/modelview.py Lines: 25, 33
Gloopy gloopy/view/projection.py Lines: 40, 66, 76
Visvis core/cameras.py Lines: 682, 693, 1139, 1157, 1757, 1772
Visvis core/axes.py Lines: 803, 806, 895, 898, 922, 925, 938, 941, 961, 964, 1028, 1036
Visvis core/baseFigure.py Lines: 911, 914
{GPL3} OpenGL-Programmable 05-shader.py Lines: 126, 215, 226
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 143, 234, 245
{GPL3} OpenGL-Programmable 03-array.py Lines: 59, 130, 141
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 134, 223, 234
{GPL3} OpenGL-Programmable 02-displaylist.py Lines: 59, 128, 139
{GPL3} OpenGL-Programmable 04-vbo.py Lines: 60, 149, 160
{GPL3} OpenGL-Programmable 01-direct.py Lines: 59, 119, 130
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 154, 256, 267

MathML Rendering

Powered by MathJax