[ Previous | Next | Contents | Glossary | Home | Search ]
OpenGL 1.1 for AIX: Reference Manual

glGenLists Subroutine


Generates a contiguous set of empty display lists.


OpenGL C bindings library: libGL.a

C Syntax

GLuint glGenLists(GLsizei Range)


Range Specifies the number of contiguous empty display lists to be generated.


The glGenLists subroutine has one argument, Range. It returns an integer n such that Range contiguous empty display lists, named n, n+1, ..., n+Range-1, are created. If Range is 0 (zero), if there is no group of Range contiguous names available, or if any error is generated, no display lists are generated, and 0 is returned.



GL_INVALID_VALUE Range is negative.
GL_INVALID_OPERATION The glGenLists subroutine is called between a call to glBegin and the corresponding call to glEnd.

Associated Gets

Associated gets for the glGenLists subroutine are as follows. (See the glGet subroutine for more information.)


/usr/include/GL/gl.h Contains C language constants, variable type definitions, and ANSI function prototypes for OpenGL.

Related Information

The glBegin or glEnd subroutine, glCallList subroutine, glCallLists subroutine, glDeleteLists subroutine, glNewList subroutine.

OpenGL Overview.

[ Previous | Next | Contents | Glossary | Home | Search ]