[ Previous | Next | Contents | Glossary | Home | Search ]
OpenGL 1.1 for AIX: Reference Manual

glLoadIdentity Subroutine

Purpose

Replaces the current matrix with the identity matrix.

Library

OpenGL C bindings library: libGL.a

C Syntax

void glLoadIdentity( void )

Description

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.

Errors

GL_INVALID_OPERATION The glLoadIdentity subroutine is called between a call to glBegin and the corresponding call to glEnd.

Associated Gets

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.

Files

/usr/include/GL/gl.h Contains C language constants, variable type definitions, and ANSI function prototypes for OpenGL.

Related Information

The glBegin or glEnd subroutine, glLoadMatrix subroutine, glMatrixMode subroutine, glMultMatrix subroutine, glPushMatrix subroutine.

OpenGL Overview.


[ Previous | Next | Contents | Glossary | Home | Search ]