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 with the identity matrix

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 is the error code and its condition.

Error code Condition
GL_INVALID_OPERATION glLoadIdentity was called between a call to glBegin and the corresponding call to glEnd.

#### Requirements

Windows NT/2000: Requires Windows NT 3.5 or later.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.