# glLoadIdentity

Definition: | include pGUI.e include opengl.e glLoadIdentity()
Description: | The glLoadIdentity function replaces the current matrix with the identity matrix. If glLoadIdentity() is called between glBegin() and glEnd(), glGetError() will return GL_INVALID_OPERATION.
pwa/p2js: | Not supported.
Remarks | The glLoadIdentity function replaces the current matrix with the identity matrix. It is semantically equivalent to calling glLoadMatrix with the following identity matrix. However, in some cases, it is more efficient. The following functions retrieve information related to glLoadIdentity: glGet with argument GL_MATRIX_MODE glGet with argument GL_MODELVIEW_MATRIX glGet with argument GL_PROJECTION_MATRIX glGet with argument GL_TEXTURE_MATRIX
See Also: | glBegin, glEnd, glMatrixMode, glPushMatrix DEV See also --glBegin --glEnd glLoadMatrix --glMatrixMode glMultMatrix --glPushMatrix