- replace the current matrix with the specified matrix
C SPECIFICATION
PARAMETERS
_param1 Specifies a pointer to 16 consecutive values,
which are used as the elements of a 4x4 column-
major matrix.
DESCRIPTION
glLoadMatrix replaces the current matrix with the one
whose elements are specified by _param1. The current
matrix is the projection matrix, modelview matrix, or tex-
ture matrix, depending on the current matrix mode (see
glMatrixMode).
The current matrix, M, defines a transformation of coordi-
nates. For instance, assume M refers to the modelview
matrix. If v=(v[0],v[1],v[2],v[3]) is the set of object
coordinates of a vertex, and _param1 points to an array of
16 single- or double-precision floating-point values
m[0],m[1],...,m[15], then the modelview transformation
M(v) does the following:
m[1] m[5] m[9] m[13] v[1]
M(v)=( )x( )
m[2] m[6] m[10] m[14] v[2]
cision.
ERRORS
GL_INVALID_OPERATION is generated if glLoadMatrix is exe-
cuted between the execution of glBegin and the correspond-
ing 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
glLoadIdentity, glMatrixMode, glMultMatrix, glPushMatrix
1