GLINITNAMES(3G)
β¨ NAME β¨
glInitNames β bestie, this is the one that resets your name stack to empty π
π C SPECIFICATION π
void glInitNames( void )
That's it. No args, no return value, no drama. She's a void queen. π
πΈ DESCRIPTION πΈ
okay so picture this: the name stack is what you use during selection mode, and its whole job is letting sets of rendering commands be uniquely identified. iykyk π¦
It's made of an ordered set of unsigned integers, like a little lineup of IDs, one after another, in order, no cap.
What glInitNames does is cause that name stack to be initialized to its default empty state. poof. gone. fresh start. β¨
and here's the important bit: the name stack is always empty while the render mode is notGL_SELECT. so if you callglInitNameswhile the render mode isn'tGL_SELECT, the call is justβ¦ ignored. literally ignored. she said nothing to me. π
π ERRORS π
GL_INVALID_OPERATIONis generated ifglInitNamesis executed between the execution ofglBeginand the corresponding execution ofglEnd.
so like, do NOT try to slide this in mid-glBegin/glEnd block, bestie. that's a hard no. π«
π«Ά ASSOCIATED GETS π«Ά
glGetwith argumentGL_NAME_STACK_DEPTHglGetwith argumentGL_MAX_NAME_STACK_DEPTH
π SEE ALSO π
glLoadName(3G)glPushName(3G)glRenderMode(3G)glSelectBuffer(3G)
go read those next, they're the rest of the friend group fr fr π§
and that's the whole page, gorgeous π this lil' cutie lives in the GLINITNAMES(3G) manual page β the 3G section, which is where all the OpenGL besties hang out. mwah, go forth and init your names πππΈ
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- fedora 43: gl-manpages 1.1-34.20190306.fc43 Β· Apache-2.0 AND HPND AND HPND-sell-variant AND MIT AND OpenPBS-2.3 AND SGI-B-2.0 AND W3C-19980720 AND X11
- fedora 44: gl-manpages 1.1-35.20190306.fc44 Β· Apache-2.0 AND HPND AND HPND-sell-variant AND MIT AND OpenPBS-2.3 AND SGI-B-2.0 AND W3C-19980720 AND X11
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms