NAME
glLoadName
- load a name onto the name stack
C SPECIFICATION
void ggllLLooaaddNNaammee(
GLuint _n_a_m_e )
PARAMETERS
-
_n_a_m_e
-
Specifies a name that will replace the top value on the name stack.
DESCRIPTION
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.
ggllLLooaaddNNaammee causes _n_a_m_e 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 GGLL__SSEELLEECCTT.
Calls to ggllLLooaaddNNaammee while the render mode is not GGLL__SSEELLEECCTT are ignored.
ERRORS
GGLL__IINNVVAALLIIDD__OOPPEERRAATTIIOONN is generated if ggllLLooaaddNNaammee is called while the
name stack is empty.
GGLL__IINNVVAALLIIDD__OOPPEERRAATTIIOONN is generated if ggllLLooaaddNNaammee is executed between
the execution of ggllBBeeggiinn and the corresponding execution of ggllEEnndd.
ASSOCIATED GETS
ggllGGeett with argument GGLL__NNAAMMEE__SSTTAACCKK__DDEEPPTTHH
ggllGGeett with argument GGLL__MMAAXX__NNAAMMEE__SSTTAACCKK__DDEEPPTTHH
SEE ALSO
ggllIInniittNNaammeess((33GG)),
ggllPPuusshhNNaammee((33GG)),
ggllRReennddeerrMMooddee((33GG)),
ggllSSeelleeccttBBuuffffeerr((33GG))