Name
glLoadIdentity — replace the current matrix with the identity matrix
Python Specification
glLoadIdentity
|
( |
) →
None
|
Description
glLoadIdentity replaces the current matrix with the identity matrix. It is semantically equivalent
to calling glLoadMatrix with the identity matrix
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
Python Sample Code
- glLoadIdentity
-
- OpenGL/Demo/NeHe/lesson1.py Ln#61,74,82
- OpenGL/Demo/NeHe/lesson18.py Ln#120,140,192
- OpenGL/Demo/NeHe/lesson2.py Ln#61,74,82
- OpenGL/Demo/NeHe/lesson3.py Ln#61,74,82
- OpenGL/Demo/NeHe/lesson4.py Ln#71,84,94,114
- OpenGL/Demo/NeHe/lesson5.py Ln#74,87,96,134
- OpenGL/Demo/NeHe/lesson6-multi.py Ln#114,127,138
- OpenGL/Demo/NeHe/lesson6.py Ln#96,109,118
- OpenGL/Demo/da/dots.py Ln#87
- OpenGL/Demo/redbook/cube.py Ln#74,84
- OpenGL/Demo/redbook/double.py Ln#96,99
- OpenGL/Demo/redbook/drawf.py Ln#94
- OpenGL/Demo/redbook/fog.py Ln#122,128
- OpenGL/Demo/redbook/hello.py Ln#88
- OpenGL/Demo/redbook/lines.py Ln#128
- OpenGL/Demo/redbook/movelight.py Ln#119,122
- OpenGL/Demo/redbook/scene.py Ln#115,123
- OpenGL/Demo/redbook/smooth.py Ln#93
- OpenGL/Demo/redbook/teapots.py Ln#177
- OpenGL/Demo/simple/GLE.py Ln#61,75
- OpenGL/Demo/suite/GLUT.py Ln#22,38,45
- OpenGL/Demo/twburton/knot.py Ln#166,181,208
- OpenGLContext/context.py Ln#459
- OpenGLContext/renderpass.py Ln#503
- OpenGLContext/rendervisitor.py Ln#186,289,291
- OpenGLContext/shadow/shadowcontext.py Ln#21
- OpenGLContext/tests/boundingvolume.py Ln#72
- OpenGLContext/tests/gldrawpixels.py Ln#62,66
- OpenGLContext/tests/glutbitmapcharacter.py Ln#18,22
- OpenGLContext/tests/nehe4.py Ln#62
- OpenGLContext/tests/nehe5.py Ln#43
- SciPy/kiva/glcore2d.py Ln#378,381
- SciPy/kiva/tests/test_glcore2d.py Ln#202
- {LGPL} PyUI/pyui/renderers/openglBase.py Ln#309,314,344
- {LGPL} PyUI/pyui/renderers/openglGlut.py Ln#231
- {LGPL} VisionEgg/src/Core.py Ln#804,1065
- {LGPL} VisionEgg/src/Dots.py Ln#179
- {LGPL} VisionEgg/src/Gratings.py Ln#263
- {LGPL} VisionEgg/src/MoreStimuli.py Ln#58,139
- {LGPL} VisionEgg/src/SphereMap.py Ln#57,152,291,400,555...
- {LGPL} VisionEgg/src/Text.py Ln#133,165
- {LGPL} VisionEgg/src/Textures.py Ln#1207,1275,1388