glMatrixMode
| Definition: |
include pGUI.e
include opengl.e glMatrixMode(integer mode) |
| Description: |
Deprecated, specifically not supported on WebGL. While still supported on desktop/Phix, this routine has been coloured illegal to indicate it cannot be handled by pwa/p2js. The glMatrixMode function specifies which matrix is the current matrix. mode: The matrix stack that is the target for subsequent matrix operations. |
| pwa/p2js: | Not supported. |
| Remarks |
The mode parameter can assume one of three values, as defined in opengl.e:
global constant GL_MODELVIEW = #1700, -- Applies subsequent matrix operations to
-- the modelview matrix stack.
GL_PROJECTION = #1701, -- Applies subsequent matrix operations to
-- the projection matrix stack.
GL_TEXTURE = #1702 -- Applies subsequent matrix operations to
-- the texture matrix stack.
If mode is none of the above values, glGetError() will return GL_INVALID_ENUM. If called between glBegin() and glEnd(), glGetError() will return GL_INVALID_OPERATION. The glMatrixMode function sets the current matrix mode. The following function retrieves information related to glMatrixMode: glGet with argument GL_MATRIX_MODE |
| See Also: |
glBegin,
glEnd,
glPushMatrix
DEV See also --glBegin --glEnd glLoadMatrix --glPushMatrix |