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. Parameters Number Specifies the number of display lists to be executed. Type Specifies the type of values in lists.
Lists Specifies the address of an array of name offsets in the display list.
The pointer type is void because the offsets can be bytes, shorts, ints, or floats, depending on the value of Type . 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. Associated Gets Associated gets for the glCallLists subroutine are as follows. The glBegin or glEnd subroutine, glCallList subroutine, glDeleteLists subroutine, glGenLists subroutine, glListBase subroutine, glNewList subroutine, glPushAttrib or glPopAttrib subroutine, glPushMatrix or glPopMatrix subroutine. OpenGL Overview .