Replaces the current matrix with an arbitrary matrix.
OpenGL C bindings library: libGL.a
void glLoadMatrixd(const GLdouble *Matrix)
void glLoadMatrixf(const GLfloat *Matrix)
Matrix | Specifies a pointer to 4 x 4 matrix stored in column-major order as 16 consecutive values. |
The glLoadMatrix subroutine replaces the current matrix with the one specified in the Matrix parameter. The current matrix is the projection matrix, model view matrix, or texture matrix, determined by the current matrix mode. (See the glMatrixMode subroutine for information on specifiying the current matrix.) The Matrix parameter points to a 4 x 4 matrix of single- or double-precision floating-point values stored in column-major order. That is, the matrix is stored as the following:
GL_INVALID_OPERATION | The glLoadMatrix subroutine is called between a call to glBegin and the corresponding call to glEnd. |
Associated gets for the glLoadMatrix 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.
/usr/include/GL/gl.h | Contains C language constants, variable type definitions, and ANSI function prototypes for OpenGL. |
The glBegin or glEnd subroutine, glLoadIdentity subroutine, glMatrixMode subroutine, glMultMatrix subroutine, glPushMatrix subroutine.