**glLoadMatrix**

### NAME

**glLoadMatrix, glLoadMatrixf** -- replace the current matrix with an
arbitrary matrix
### C SPECIFICATION

void **glLoadMatrixd**(GLdouble **m*)
void **glLoadMatrixf**(GLfloat **m*)

### PARAMETERS

*m*-
Specifies a pointer to a 4x4 matrix stored in column-major order as
sixteen consecutive values.

### DESCRIPTION

**glLoadMatrix** replaces the current matrix with the one specified in
*m*. The current matrix is the projection matrix, modelview matrix, or
texture matrix, determined by the current matrix mode (see
**glMatrixMode**).
*m* points to a 4x4 matrix of single- or double-precision floating-point
values stored in column-major order. That is, the matrix is stored as
follows:

### ERRORS

**GL_INVALID_OPERATION** is generated if **glLoadMatrix** is called
between a call to **glBegin** and the
corresponding call to **glEnd**.
### ASSOCIATED GETS

**glGet** with argument
**GL_MATRIX_MODE**

**glGet** with argument
**GL_MODELVIEW_MATRIX**

**glGet** with argument
**GL_PROJECTION_MATRIX**

**glGet** with argument
**GL_TEXTURE_MATRIX**

### SEE ALSO

**glLoadIdentity**,
**glMatrixMode**,
**glMultMatrix**,
**glPushMatrix**

back to the **OpenGL index page**

© *1995 Uwe Behrens. All rights reserved.*