Loads a name onto the name stack.
OpenGL C bindings library: libGL.a
void LoadName(GLuint Name)
Name | Specifies a name that replaces the top value on the name stack. |
The name stack is used during selection mode to allow sets of rendering commands to be uniquely identified. It consists of an ordered set of unsigned integers. The glLoadName subroutine causes the Name parameter to replace the value on the top of the name stack, which is initially empty.
The name stack is always empty while the render mode is not GL_SELECT. Calls to glLoadName while the render mode is not GL_SELECT are ignored.
Associated gets for the glLoadName subroutine are as follows. (See the glGet subroutine for more information.)
glGet with argument GL_NAME_STACK_DEPTH
glGet with argument GL_MAX_NAME_STACK_DEPTH.
/usr/include/GL/gl.h | Contains C language constants, variable type definitions, and ANSI function prototypes for OpenGL. |
The glBegin or glEnd subroutine, glInitNames subroutine, glPushName subroutine, glRenderMode subroutine, glSelectBuffer subroutine.