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

NAME

6       glMatrixMode - specify which matrix is the current matrix
7

C SPECIFICATION

9       void glMatrixMode(GLenum mode);
10

PARAMETERS

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

DESCRIPTION

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

ERRORS

40       GL_INVALID_ENUM is generated if mode is not an accepted value.
41
42       GL_INVALID_OPERATION is generated if glMatrixMode is executed between
43       the execution of glBegin() and the corresponding execution of glEnd().
44

ASSOCIATED GETS

46       glGet() with argument GL_MATRIX_MODE
47

SEE ALSO

49       glLoadMatrix(), glLoadTransposeMatrix(), glMultMatrix(),
50       glMultTransposeMatrix(), glPopMatrix(), glPushMatrix()
51
53       Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
54       under the SGI Free Software B License. For details, see
55       http://oss.sgi.com/projects/FreeB/.
56

AUTHORS

58       opengl.org
59
60
61
62opengl.org                        06/10/2014                  GLMATRIXMODE(3G)
Impressum