glMatrixMode(3) glMatrixMode(3)

## NAME

glMatrixMode- specify which matrix is the current matrix

## C SPECIFICATION

voidglMatrixMode( GLenummode)

## PARAMETERS

modeSpecifies which matrix stack is the target for subsequent matrix operations. Three values are accepted:GL_MODELVIEW,GL_PROJECTION, andGL_TEXTURE. The initial value isGL_MODELVIEW. Additionally, if theGL_ARB_imagingextension is supported,GL_COLORis also accepted.

## DESCRIPTION

glMatrixModesets the current matrix mode.modecan assume one of four values:GL_MODELVIEWApplies subsequent matrix operations to the modelview matrix stack.GL_PROJECTIONApplies subsequent matrix operations to the projection matrix stack.GL_TEXTUREApplies subsequent matrix operations to the texture matrix stack.GL_COLORApplies subsequent matrix operations to the color matrix stack. To find out which matrix stack is currently the target of all matrix operations, callglGetwith argumentGL_MATRIX_MODE. The initial value isGL_MODELVIEW.

## ERRORS

GL_INVALID_ENUMis generated ifmodeis not an accepted value.GL_INVALID_OPERATIONis generated ifglMatrixModeis executed between the execution ofglBeginand the corresponding execution ofglEnd.

## ASSOCIATED GETS

glGetwith argumentGL_MATRIX_MODE

## SEE ALSO

glLoadMatrix(3),glPushMatrix(3)glMatrixMode(3)

Mac OS X 10.6 - Generated Thu Sep 17 20:20:25 CDT 2009