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

glDeleteLists Subroutine

Purpose

Deletes a contiguous group of display lists.

Library

OpenGL C bindings library: libGL.a

C Syntax

void glDeleteLists(GLunint List,  GLsizei Range)

Parameters

List Specifies the integer name of the first display list to delete.
Range Specifies the number of display lists to delete.

Description

The glDeleteLists subroutine causes a contiguous group of display lists to be deleted. The List parameter is the name of the first display list to be deleted, and the Range parameter is the number of display lists to be deleted. All display lists d with List <= d <= List + Range - 1 are deleted.

All storage locations allocated to the specified display lists are freed, and the names are available for reuse at a later time. Names within the range that do not have an associated display list are ignored. If Range is 0 (zero), nothing happens.

Errors

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

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, glGenLists subroutine, glIsList subroutine, glNewList subroutine.

OpenGL Overview.


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