Page 392 (Web hosting reseller) OpenGL Super Bible! glIsList Purpose Tests

Page 392 OpenGL Super Bible! glIsList Purpose Tests for the existence of a display list. Include File Syntax GLboolean glIsList(GLuint list ); Description This function is used to find out if a display list exists for a given identifier. You can use this function to test display list values before using them. Parameters list GLuint: The value of a potential display list. This function tests this value to see if a display list is defined for it. Returns GL_TRUE if the display list exists, otherwise GL_FALSE. Example The following code loops through an array that should contain valid display lists. The display list identifier is tested for validity, and if valid it is called int lists[25]; // Array of display lists int x; // Looping variable for(x = 0; x < 25; x++) if(glIsList(lists[x]) glCallList(); See Also glCallList, glCallLists, glDeleteLists, glGenLists, glNewList
If you are looking for affordable and reliable webhost to host and run your business application visit our ftp web hosting services.

Leave a Reply