Signature
Parameters
Variables | Description |
---|---|
list |
Specifies the integer name of the display list to be executed.
|
Description
glCallList
causes the named display list to be executed.
The commands saved in the display list are executed in order,
just as if they were called without using a display list.
If
list
has not been defined as a display list,
glCallList
is ignored.
glCallList
can appear inside a display list.
To avoid the possibility of infinite recursion resulting from display lists
calling one another,
a limit is placed on the nesting level of display
lists during display-list execution.
This limit is at least 64, and it depends on the implementation.
GL state is not saved and restored across a call to
glCallList
.
Thus,
changes made to GL state during the execution of a display list
remain after execution of the display list is completed.
Use
glPushAttrib
,
glPopAttrib
,
glPushMatrix
,
and
glPopMatrix
to preserve GL state across
glCallList
calls.
Notes
Associated Gets
glGet
with argument
GL_MAX_LIST_NESTING
See Also
Copyright
Copyright
1991-2006
Silicon Graphics, Inc. This document is licensed under the SGI
Free Software B License. For details, see
http://oss.sgi.com/projects/FreeB/
.
Sample Code References
The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.
glCallList
{LGPL or GPL or MPL} Kamaelia
Code/Python/Kamaelia/Kamaelia/UI/OpenGL/OpenGLDisplay.py
Lines: 807, 889
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/OpenGLDisplay.py
Lines: 785, 867
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Sketches/playground/Display3D.py
Lines: 416, 469
{LGPL or GPL or MPL} Kamaelia
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/UI/OpenGL/OpenGLDisplay.py
Lines: 807, 889
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Kamaelia/Community/THF/Kamaelia/UI/OpenGL/OpenGLDisplay.py
Lines: 784, 866