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

NAME

6       glPushName - push and pop the name stack
7

C SPECIFICATION

9       void glPushName(GLuint name);
10

PARAMETERS

12       name
13           Specifies a name that will be pushed onto the name stack.
14

C SPECIFICATION

16       void glPopName(void);
17

DESCRIPTION

19       The name stack is used during selection mode to allow sets of rendering
20       commands to be uniquely identified. It consists of an ordered set of
21       unsigned integers and is initially empty.
22
23       glPushName causes name to be pushed onto the name stack.  glPopName()
24       pops one name off the top of the stack.
25
26       The maximum name stack depth is implementation-dependent; call
27       GL_MAX_NAME_STACK_DEPTH to find out the value for a particular
28       implementation. It is an error to push a name onto a full stack or to
29       pop a name off an empty stack. It is also an error to manipulate the
30       name stack between the execution of glBegin() and the corresponding
31       execution of glEnd(). In any of these cases, the error flag is set and
32       no other change is made to GL state.
33
34       The name stack is always empty while the render mode is not GL_SELECT.
35       Calls to glPushName or glPopName() while the render mode is not
36       GL_SELECT are ignored.
37

ERRORS

39       GL_STACK_OVERFLOW is generated if glPushName is called while the name
40       stack is full.
41
42       GL_STACK_UNDERFLOW is generated if glPopName() is called while the name
43       stack is empty.
44
45       GL_INVALID_OPERATION is generated if glPushName or glPopName() is
46       executed between a call to glBegin() and the corresponding call to
47       glEnd().
48

ASSOCIATED GETS

50       glGet() with argument GL_NAME_STACK_DEPTH
51
52       glGet() with argument GL_MAX_NAME_STACK_DEPTH
53

SEE ALSO

55       glInitNames(), glLoadName(), glRenderMode(), glSelectBuffer()
56
58       Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
59       under the SGI Free Software B License. For details, see
60       http://oss.sgi.com/projects/FreeB/.
61

AUTHORS

63       opengl.org
64
65
66
67opengl.org                        06/10/2014                    GLPUSHNAME(3G)
Impressum