gl.MatrixMode(mode)
gl.MatrixMode()
sets the current matrix mode. mode
can assume one of three values:
#GL_MODELVIEW
#GL_PROJECTION
#GL_TEXTURE
To find out which matrix stack is currently the target of all matrix operations, call gl.Get() with
argument #GL_MATRIX_MODE
. The initial value is #GL_MODELVIEW
.
Please consult an OpenGL reference manual for more information.
#GL_INVALID_ENUM
is generated if mode
is not an accepted value.
#GL_INVALID_OPERATION
is generated if gl.MatrixMode()
is executed between the execution of gl.Begin() and the corresponding execution of gl.End().
#GL_MATRIX_MODE