glLoadIdentity  1JRL3EA

[New - Windows 95, OEM Service Release 2]

The glLoadIdentity function replaces the current matrix with the identity matrix.

void glLoadIdentity(

    void

 

   );

 

 

Remarks

The glLoadIdentity function replaces the current matrix with the identity matrix. It is semantically equivalent to calling glLoadMatrix3KHO0H3 with the identity matrix

{bmc bm28.BMP}

but in some cases it is more efficient.

The following functions retrieve information related to glLoadIdentity:

glGet8KNKTW with argument GL_MATRIX_MODE

glGet with argument GL_MODELVIEW_MATRIX

glGet with argument GL_PROJECTION_MATRIX

glGet with argument GL_TEXTURE_MATRIX

 

Error Codes

The following are the error codes generated and their conditions.

Error Code

Condition

GL_INVALID_OPERATION

glLoadIdentity was called between a call to glBegin and the corresponding call to glEnd.

 

See Also

glBegin, glEnd, glLoadMatrix, glMatrixMode, glMultMatrix, glPushMatrix