Page 386 OpenGL Super Bible! Reference Section glCallList Purpose Executes a display list. Include File Syntax void glCallList(GLuint list); Description Executes the display list identified by list. The OpenGL State Machine is not restored after this function is called, so it is a good idea to call glPushMatrix beforehand and glPopMatrix afterwards. Calls to glCallList may be nested. The function glGet with the argument GL_MAX_LIST_NESTING returns the maximum number of allowable nests. For Microsoft Windows, this value is 64. Parameters list GLuint: Identifies the display list to be executed. Returns None. Example The following code saves the matrix state before calling a display list. It then restores the state afterwards. This code is from the BOLTL example program from this chapter s subdirectory on the CD. // Save the current transform state glPushMatrix(); // Draw the bolt including nested display lists glCallList(BOLT_HEAD); // Restore state glPopMatrix(); See Also glCallLists, glDeleteLists, glGenLists, glNewList
We recommend high quality webhost to host and run your jsp application: christian web host services.
This entry was posted
on Monday, October 22nd, 2007 at 4:13 pm and is filed under Coldfusion.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.