Porting Functions that Get Matrices and Transformations

The following table lists the IRIS GL functions that get the state of matrices and transformations and their OpenGL equivalents.

IRIS GL Matrix Query OpenGL glGet Matrix Query Meaning
getmmode GL_MATRIX_MODE Return the current matrix mode.
getmatrix in MVIEWING mode GL_MODELVIEW_MATRIX Return a copy of the current model-view matrix.
getmatrix in MPROJECTION mode GL_PROJECTION_MATRIX Return a copy of the current projection matrix.
getmatrix in MTEXTURE mode GL_TEXTURE_MATRIX Return a copy of the current texture matrix.
Not applicable. GL_MAX_MODELVIEW_
STACK_DEPTH
Return maximum supported depth of the model-view matrix stack.
Not applicable. GL_MAX_PROJECTION_
STACK_DEPTH
Return maximum supported depth of the projection matrix stack.
Not applicable. GL_MAX_TEXTURE_
STACK_DEPTH
Return maximum supported depth of the texture matrix stack.
Not applicable. GL_MODELVIEW_
STACK_DEPTH
Returns number of matrices on the model view stack.
Not applicable. GL_PROJECTION_
STACK_DEPTH
Returns number of matrices on the projection stack.
Not applicable. GL_TEXTURE_STACK_
DEPTH
Returns number of matrices on the texture stack.