glLoadIdentity
[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 glLoadMatrix
{bmc bm28.BMP}
but 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
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