Replaces the current matrix with the identity matrix.
OpenGL C bindings library: libGL.a
void glLoadIdentity( void )
The glLoadIdentity subroutine replaces the current matrix with the identity matrix. It is semantically equivalent to calling the glLoadMatrix subroutine with the following identity matrix:
Calling glLoadIdentity is in some cases more efficient.
GL_INVALID_OPERATION | The glLoadIdentity subroutine is called between a call to glBegin and the corresponding call to glEnd. |
Associated gets for the glLoadIdentity subroutine are as follows. (See the glGet subroutine for more information.)
glGet with argument GL_MATRIX_MODE
glGet with argument GL_MODELVIEW_MATRIX
glGet with argument GL_PROJECTION_MATRIX
glGet with argument GL_TEXTURE_MATRIX.
/usr/include/GL/gl.h | Contains C language constants, variable type definitions, and ANSI function prototypes for OpenGL. |
The glBegin or glEnd subroutine, glLoadMatrix subroutine, glMatrixMode subroutine, glMultMatrix subroutine, glPushMatrix subroutine.