OpenGL Super Bible! Page 395 glNewList Purpose Begins (Web hosting plans)

OpenGL Super Bible! Page 395 glNewList Purpose Begins the creation or replacement of a display list. Include File Syntax void glNewList(GLuint list, GLenum mode); Description A display list is a group of OpenGL commands that are stored for execution on command. You can use display lists to speed up drawings that are computationally intensive or that require data to be read from a disk. The glNewList function begins a display list with an identifier specified by the integer list parameter. The display list identifier is used by glCallList and glCallLists to refer to the display list. If it s not unique, a previous display list may be overwritten. You can use glGenLists to reserve a range of display list names, and glIsList to test a display list identifier before using it. Display lists can be compiled only, or compiled and executed. After glNewList is called, all OpenGL commands are stored in the display list in the order they were issued until glEndList is called. The following commands are executed when called and are never stored in the display list itself: glIsList, glGenLists, glDeleteLists, glFeedbackBuffer, glSelectBuffer, glRenderMode, glReadPixels, glPixelStore, glFlush, glFinish, glIsEnabled, and glGet. Parameters list GLuint: The numerical name of the display list. If the display list already exists, it is replaced by the new display list. mode GLenum: Display lists may be compiled and executed later, or compiled and executed simultaneously. Specify GL_COMPILE to only compile the display list, or GL_COMPILE_AND_EXECUTE to execute the display list as it is being compiled. Returns None. Example The following is an example of a display list being delimited by glNewList and glEndList. This particular display list is composed by nesting two other display lists within it. // Begin delimit of list glNewList(BOLT_LIST,GL_COMPILE); // Display list calls two previously defined display lists glCallList(SHAFT_LIST);
Searching for affordable and proven webhost to host and run your servlet applications? Go to Linux Web Hosting services and you will find it.

Leave a Reply