-> Click here to learn how to get live help <-
NAMEglNewList, glEndList - create or replace a display list
C SPECIFICATIONvoid f3glNewListfP( GLuint fIlistfP,
f2listfP Specifies the display-list name.
C SPECIFICATIONvoid f3glEndListfP( void )
DESCRIPTIONDisplay lists are groups of GL commands that have been stored for subsequent execution. Display lists are created with %f3glNewListfP. All subsequent commands are placed in the display list, in the order issued, until %f3glEndListfP is called. %f3glNewListfP has two arguments. The first argument, f2listfP, is a positive integer that becomes the unique name for the display list. Names can be created and reserved with %f3glGenListsfP and tested for uniqueness with %f3glIsListfP. The second argument, f2modefP, is a symbolic constant that can assume one of two values:
NOTES%f3glCallListfP and %f3glCallListsfP can be entered into display lists. Commands in the display list or lists executed by %f3glCallListfP or %f3glCallListsfP are not included in the display list being created, even if the list creation mode is %f3GL_COMPILE_AND_EXECUTEfP. A display list is just a group of commands and arguments, so errors generated by commands in a display list must be generated when the list is executed. If the list is created in %f3GL_COMPILEfP mode, errors are not generated until the list is executed.
ERRORS%f3GL_INVALID_VALUEfP is generated if f2listfP is 0. %f3GL_INVALID_ENUMfP is generated if f2modefP is not an accepted value. %f3GL_INVALID_OPERATIONfP is generated if %f3glEndListfP is called without a preceding %f3glNewListfP, or if %f3glNewListfP is called while a display list is being defined. %f3GL_INVALID_OPERATIONfP is generated if %f3glNewListfP or %f3glEndListfP is executed between the execution of %f3glBeginfP and the corresponding execution of %f3glEndfP. %f3GL_OUT_OF_MEMORYfP is generated if there is insufficient memory to compile the display list. If the GL version is 1.1 or greater, no change is made to the previous contents of the display list, if any, and no other change is made to the GL state. (It is as if no attempt had been made to create the new display list.)
%f3glGetfP with argument %f3GL_LIST_INDEXfP
%f3glGetfP with argument %f3GL_LIST_MODEfP
SEE ALSO%f3glCallList(3G)fP, %f3glCallLists(3G)fP, %f3glDeleteLists(3G)fP, %f3glGenLists(3G)fP