gl.LoadIdentity()
gl.LoadIdentity()
replaces the current matrix with the identity matrix. It is semantically equivalent to calling gl.LoadMatrix()
with the identity matrix but in some cases it is more efficient.
Please consult an OpenGL reference manual for more information.
#GL_INVALID_OPERATION
is generated if gl.LoadIdentity()
is executed between the execution of gl.Begin() and the corresponding execution of gl.End() .
#GL_MATRIX_MODE
gl.Get() with argument #GL_MODELVIEW_MATRIX
gl.Get() with argument #GL_PROJECTION_MATRIX
gl.Get() with argument #GL_TEXTURE_MATRIX