GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


Manpage of GLNEWLIST

GLNEWLIST

Index
 

NAME

glNewList, glEndList - create or replace a display list

 

C SPECIFICATION

void f3glNewListfP( GLuint fIlistfP,
f2listfP
Specifies the display-list name.
f2modefP
Specifies the compilation mode, which can be %f3GL_COMPILEfP or %f3GL_COMPILE_AND_EXECUTEfP.
 

C SPECIFICATION

void f3glEndListfP( void )


 

DESCRIPTION

Display 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:
%f3GL_COMPILEfP
Commands are merely compiled.
%f3GL_COMPILE_AND_EXECUTEfP
Commands are executed as they are compiled into the display list. Certain commands are not compiled into the display list but are executed immediately, regardless of the display-list mode. These commands are %f3glAreTexturesResidentfP, %f3glColorPointerfP, %f3glDeleteListsfP, %f3glDeleteTexturesfP, %f3glDisableClientStatefP, %f3glEdgeFlagPointerfP, %f3glEnableClientStatefP, %f3glFeedbackBufferfP, %f3glFinishfP, %f3glFlushfP, %f3glGenListsfP, %f3glGenTexturesfP, %f3glIndexPointerfP, %f3glInterleavedArraysfP, %f3glIsEnabledfP, %f3glIsListfP, %f3glIsTexturefP, %f3glNormalPointerfP, %f3glPopClientAttribfP, %f3glPixelStorefP, %f3glPushClientAttribfP, %f3glReadPixelsfP, %f3glRenderModefP, %f3glSelectBufferfP, %f3glTexCoordPointerfP, %f3glVertexPointerfP, and all of the %f3glGetfP commands. Similarly, %f3glTexImage1DfP, %f3glTexImage2DfP, and %f3glTexImage3DfP are executed immediately and not compiled into the display list when their first argument is %f3GL_PROXY_TEXTURE_1DfP, %f3GL_PROXY_TEXTURE_1DfP, or %f3GL_PROXY_TEXTURE_3DfP, respectively. When the %f3GL_ARB_imagingfP extension is supported, %f3glHistogramfP executes immediately when its argument is %f3GL_PROXY_HISTOGRAMfP. Similarly, %f3glColorTablefP executes immediately when its first argument is %f3glPROXY_COLOR_TABLEfP, %f3glPROXY_POST_CONVOLUTION_COLOR_TABLEfP, or %f3glPROXY_POST_COLOR_MATRIX_COLOR_TABLEfP. When the %f3GL_ARB_multitexturefP extension is supported, %f3glClientActiveTextureARBfP is not compiled into display lists, but executed immediately. When %f3glEndListfP is encountered, the display-list definition is completed by associating the list with the unique name f2listfP (specified in the %f3glNewListfP command). If a display list with name f2listfP already exists, it is replaced only when %f3glEndListfP is called.
 

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.)  

ASSOCIATED GETS

%f3glIsListfP
%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


 

Index

NAME
C SPECIFICATION
C SPECIFICATION
DESCRIPTION
NOTES
ERRORS
ASSOCIATED GETS
SEE ALSO