glGenLists function
The glGenLists function generates a contiguous set of empty display lists.
GLuint WINAPI glGenLists(
GLsizei range
);
-
range
-
The number of contiguous empty display lists to be generated.
The following error codes can be retrieved by the glGetError function.
Name | Meaning |
---|---|
|
range was negative. |
|
The function was called between a call to glBegin and the corresponding call to glEnd. |
The glGenLists function 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 zero, if there is no group of range contiguous names available, or if any error is generated, then no display lists are generated and zero is returned.
The following function retrieves information related to glGenLists:
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
Header |
|
Library |
|
DLL |
|