Edit

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 Returns the current matrix mode.
getmatrix in MVIEWING mode GL_MODELVIEW_MATRIX Returns a copy of the current model-view matrix.
getmatrix in MPROJECTION mode GL_PROJECTION_MATRIX Returns a copy of the current projection matrix.
getmatrix in MTEXTURE mode GL_TEXTURE_MATRIX Returns a copy of the current texture matrix.
Not applicable. GL_MAX_MODELVIEW_STACK_DEPTH Returns maximum supported depth of the model-view matrix stack.
Not applicable. GL_MAX_PROJECTION_STACK_DEPTH Returns maximum supported depth of the projection matrix stack.
Not applicable. GL_MAX_TEXTURE_STACK_DEPTH Returns 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.

 

??