1GLMATRIXMODE(3G)                                              GLMATRIXMODE(3G)
2
3
4

NAME

6       glMatrixMode - specify which matrix is the current matrix
7
8

C SPECIFICATION

10       void glMatrixMode( GLenum mode )
11
12

PARAMETERS

14       mode  Specifies  which matrix stack is the target for subsequent matrix
15             operations.    Three   values   are    accepted:    GL_MODELVIEW,
16             GL_PROJECTION,    and   GL_TEXTURE.    The   initial   value   is
17             GL_MODELVIEW.
18
19             Additionally,  if  the  GL_ARB_imaging  extension  is  supported,
20             GL_COLOR is also accepted.
21

DESCRIPTION

23       glMatrixMode sets the current matrix mode.  mode can assume one of four
24       values:
25
26       GL_MODELVIEW             Applies subsequent matrix  operations  to  the
27                                modelview matrix stack.
28
29       GL_PROJECTION            Applies  subsequent  matrix  operations to the
30                                projection matrix stack.
31
32       GL_TEXTURE               Applies subsequent matrix  operations  to  the
33                                texture matrix stack.
34
35       GL_COLOR                 Applies  subsequent  matrix  operations to the
36                                color matrix stack.
37
38       To find out which matrix stack is currently the target  of  all  matrix
39       operations,  call glGet with argument GL_MATRIX_MODE. The initial value
40       is GL_MODELVIEW.
41

ERRORS

43       GL_INVALID_ENUM is generated if mode is not an accepted value.
44
45       GL_INVALID_OPERATION is generated if glMatrixMode is  executed  between
46       the execution of glBegin and the corresponding execution of glEnd.
47

ASSOCIATED GETS

49       glGet with argument GL_MATRIX_MODE
50

SEE ALSO

52       glLoadMatrix(3G), glPushMatrix(3G)
53
54
55
56                                                              GLMATRIXMODE(3G)
Impressum