The glDeleteLists function deletes a contiguous group of display lists.
void glDeleteLists(
GLuint list,
GLsizei range
);
The glDeleteLists function 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 range is the number of display lists to delete. 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 zero, nothing happens.
The following are the error codes generated and their conditions.
Error Code | Condition |
---|---|
GL_INVALID_VALUE | range was negative. |
GL_INVALID_OPERATION | glDeleteLists was called between a call to glBegin and the corresponding call to glEnd. |
Windows NT: Use version 3.5 and later.
Windows: Use Windows 95 and later.
Windows CE: Unsupported.
Header: Declared in gl.h.
Import Library: Link with opengl32.lib.
glBegin, glCallList, glCallLists, glEnd, glGenLists, glIsList, glNewList