GLCALLLIST(3G)
π NAME π
glCallList β bestie, this is the one that executes a display list. like, actually runs it. periodt. β¨
πΈ C SPECIFICATION πΈ
void glCallList( GLuint list )
π PARAMETERS π
listβ the integer name of the display list you want executed. that's it, that's the whole vibe check. π
β¨ DESCRIPTION β¨
okay so glCallList causes the named display list to be executed. the commands that were saved in that display list get executed in order, literally just as if you had called them without using a display list at all. same energy, same result. π¦
and here's the tea: if list has not been defined as a display list, glCallList is just... ignored. no drama, no error, it simply does not engage. π
glCallList can appear inside a display list. which is cute until you realize display lists can call each other, and that's how you get infinite recursion β the recursion glitch of your nightmares π. so to avoid that possibility, a limit is placed on the nesting level of display lists during display-list execution. this limit is at least 64, and ngl it depends on the implementation. so don't go feral with the nesting, bestie.
GL state is not saved and restored across a call to glCallList. so any changes made to GL state during the execution of a display list remain after execution of the display list is completed. the state changes are staying, they're committed, they're main character energy π
want to preserve GL state across glCallList calls? use glPushAttrib, glPopAttrib, glPushMatrix, and glPopMatrix. those are your besties for this. π«Ά
π NOTES π
display lists can be executed between a call to glBegin and the corresponding call to glEnd, as long as the display list includes only commands that are allowed in this interval. so like, read the room and check what's allowed in there first. π
π ASSOCIATED GETS π
glGetwith argumentGL_MAX_LIST_NESTINGglIsList
π SEE ALSO π
glCallLists(3G)glDeleteLists(3G)glGenLists(3G)glNewList(3G)glPushAttrib(3G)glPushMatrix(3G)
and that's the whole page, no cap π this was GLCALLLIST(3G), from the 3G manual, girlies β go forth and execute your display lists responsibly πβπ
π¦ 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