OpenGL Super Bible! Page 391 glGenLists Purpose Generates

OpenGL Super Bible! Page 391 glGenLists Purpose Generates a continuous range of empty display lists. Include File Syntax GLuint glGenLists(GLsizei range); Description This function creates a range of empty display lists. The number of lists generated depends on the value specified in range. The return value is then the first display list in this range of empty display lists. The purpose of this function is to reserve a range of display list values for future use. Parameters range GLsizei: The number of empty display lists requested. Returns The first display list of the range requested. The display list values following the return value up to range -1 are created empty. Example The following code allocates an array of 25 integers that will be used to store 25 display lists. Each element in the array must be assigned a valid display list name that can be used later. int lists[25]; // Space for 25 display lists int first; // Index of the first display list name available int x; // Looping variable // Get the first display list identifier first = glGenLists(25); // Loop and assign each element in the array with a valid display list for(x = 0; x < 25; x++) lists[25] = first + x + 1; See Also glCallList, glCallLists, glDeleteLists, glNewList
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.

Leave a Reply