Multiplies the current matrix by an arbitrary matrix.
OpenGL C bindings library: libGL.a
void glMultMatrixd(const GLdouble *Matrix)
void glMultMatrixf(const GLfloat *Matrix)
Matrix | Specifies a pointer to 4 x 4 matrix stored in column-major order as 16 consecutive values. |
The glMultMatrix subroutine multiplies the current matrix with the one specified in the Matrix parameter. For example, if M is the current matrix and T is the matrix passed to glMultMatrix, M is replaced with MT.
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 specifying 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 in the following figure:
GL_INVALID_OPERATION | The glMultMatrix subroutine is called between a call to glBegin and the corresponding call to glEnd. |
Associated gets for the glMultMatrix 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, glLoadMatrix subroutine, glMatrixMode subroutine, glPushMatrix subroutine.