GLLOADNAME(3G)
π GLLOADNAME β the 3G girlies' guide to loading names π
okay bestie, welcome to GLLOADNAME(3G) β the page where we learn how to slap a name onto the top of the name stack. it's giving selection mode support, it's giving unsigned integers, it's giving everything. let's go π«Ά
β¨ C SPECIFICATION β¨
void glLoadName( GLuint name )
π PARAMETERS π
nameβ the name that's gonna replace the top value on the name stack. that's it. that's the whole job. she's a simple icon π
πΈ DESCRIPTION πΈ
so here's the tea, bestie β β the name stack is what we use during selection mode to let sets of rendering commands be uniquely identified. it's literally just an ordered set of unsigned integers. no cap. that's the whole data structure. slay.
glLoadName makes name replace the value on the top of the name stack. and bestie, hear me when i say: that stack is initially empty. like, fresh out the box, zero notes, no entries. π
and now the important part β the way that the name stack is always empty while the render mode is not GL_SELECT?? yeah. so if you call glLoadName while the render mode is not GL_SELECT, it's ignored. just straight up ignored. she's not even mad, she's just not listening. π
β¨ friendly reminder bestie: selection mode on = name stack has opinions. selection mode off = name stack is empty and your calls are getting left on read.
π ERRORS π
things that will absolutely not pass the vibe check:
GL_INVALID_OPERATIONis generated ifglLoadNameis called while the name stack is empty. ma'am. there's nothing there to replace. πGL_INVALID_OPERATIONis generated ifglLoadNameis executed between the execution ofglBeginand the corresponding execution ofglEnd. do not do this. i'm begging. π
π ASSOCIATED GETS π
want the receipts? you can pull these:
glGetwith argumentGL_NAME_STACK_DEPTHglGetwith argumentGL_MAX_NAME_STACK_DEPTH
π¦ SEE ALSO π¦
the girlies in the same friend group, iykyk:
glInitNames(3G)glPushName(3G)glRenderMode(3G)glSelectBuffer(3G)
and that's the whole page, bestie!! GLLOADNAME(3G), 3G manual, living her best life in the OpenGL docs π go forth, load those names, stay out of GL_INVALID_OPERATION jail, and remember β no cap, the name stack is always empty when you're not in GL_SELECT. periodt. πβ¨
π¦ 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