Executes a list of display lists.
OpenGL C bindings library: libGL.a
void glCallLists(GLsizei Number, GLenum Type, const GLvoid *Lists)
The glCallLists subroutine causes each display list in the list of names passed as lists to be executed. As a result, the commands saved in each display list are executed in order, just as if they were called without using a display list. Names of display lists that have not been defined are ignored.
The glCallLists subroutine provides an efficient means for executing display lists. The Number parameter allows lists with various name formats to be accepted. The formats are:
The list of display list names is not null-terminated. Rather, the Number parameter specifies how many names are to be taken from Lists.
An additional level of indirection is made available with the glListBase subroutine, which specifies a signed offset that is added to each display list name specified in Lists before that display list is executed.
The glCallLists subroutine can appear inside a display list. To avoid the possibility of infinite recursion resulting from display lists calling one another, an implementation-dependent limit is placed on the the nesting level of display lists during display list execution. This limit must be at least 64.
GL state is not saved and restored across a call to glCallLists. Thus, changes made to GL state during the execution of the display lists remain after execution is completed. Use the glPushAttrib, glPopAttrib, glPushMatrix, and glPopMatrix subroutines to preserve GL state across glCallLists calls.
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.
Associated gets for the glCallLists subroutine are as follows. (See the glGet subroutine for more information.)
glGet with argument GL_LIST_BASE
glGet with argument GL_MAX_LIST_NESTING
/usr/include/GL/gl.h | Contains C language constants, variable type definitions, and ANSI function prototypes for OpenGL. |
The glBegin or glEnd subroutine, glCallList subroutine, glDeleteLists subroutine, glGenLists subroutine, glListBase subroutine, glNewList subroutine, glPushAttrib or glPopAttrib subroutine, glPushMatrix or glPopMatrix subroutine.