---
name: "glLoadIdentity"
section: "3x"
platform: "linux"
package: "xlibmesa-gl-dev"
version: "4.3.0.dfsg.1-14sarge7"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/glLoadIdentity"
---

# glLoadIdentity(3x)

replace the current matrix with the identity matrix

## NAME

**glLoadIdentity** - replace the current matrix with the identity matrix

## C SPECIFICATION

void **glLoadIdentity**( void )

```

```

## DESCRIPTION

**glLoadIdentity** replaces the current matrix with the identity matrix. It is semantically equivalent to calling **glLoadMatrix** with the identity matrix

left (  down 20 { ~ matrix {\
    ccol { 1 above 0 above 0 above 0~ }\
    ccol { 0 above 1 above 0 above 0~ }\
    ccol { 0 above 0 above 1 above 0~ }\
    ccol { 0 above 0 above 0 above 1 } } } ~~ right )

but in some cases it is more efficient.

## ERRORS

**GL\_INVALID\_OPERATION** is generated if **glLoadIdentity** is executed between the execution of **glBegin** and the corresponding execution of **glEnd**.

## ASSOCIATED GETS

**glGet** with argument **GL\_MATRIX\_MODE**\
 **glGet** with argument **GL\_COLOR\_MATRIX**\
 **glGet** with argument **GL\_MODELVIEW\_MATRIX**\
 **glGet** with argument **GL\_PROJECTION\_MATRIX**\
 **glGet** with argument **GL\_TEXTURE\_MATRIX**

## SEE ALSO

**glLoadMatrix(3G)**, **glMatrixMode(3G)**, **glMultMatrix(3G)**, **glPushMatrix(3G)**
