getmatrix(3G)getmatrix(3G)NAMEgetmatrix - returns a copy of a transformation matrix
C SPECIFICATION
void getmatrix(m)
Matrix m;
PARAMETERS
m expects an array into which to copy a matrix.
DESCRIPTIONgetmatrix copies a transformation matrix into a user-specified array.
When mmode is MSINGLE, the matrix from the top of the single matrix stack
is returned. When mmode is MVIEWING, the matrix from the top of the
ModelView matrix stack is returned. When mmode is MPROJECTION, the
projection matrix is returned. And when mmode is MTEXTURE, the texture
matrix is returned.
getmatrix does not alter the state of the graphics system.
SEE ALSO
loadmatrix, mmode, multmatrix, popmatrix, pushmatrix
NOTE
This routine is available only in immediate mode.
Page 1