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

glGenLists Subroutine

Purpose

Generates a contiguous set of empty display lists.

Library

OpenGL C bindings library: libGL.a

C Syntax

GLuint glGenLists(GLsizei Range)

Parameters

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

Description

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.

glIsList.

Errors

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.)

Files

/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 ]