glGenLists

generate a contiguous set of empty display lists

Signature

glGenLists( GLsizei ( range ) )-> GLuint
glGenLists( range ) -> <class 'ctypes.c_uint'>

Parameters

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

Description

glGenLists 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, 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.

Errors

GL_INVALID_VALUE is generated if range is negative.
GL_INVALID_OPERATION is generated if glGenLists is executed between the execution of glBegin and the corresponding execution of glEnd .

Associated Gets

See Also

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glGenLists
OpenGLContext OpenGLContext/displaylist.py Lines: 19
OpenGLContext OpenGLContext/scenegraph/text/wxfont.py Lines: 91
OpenGLContext OpenGLContext/scenegraph/text/wglfont.py Lines: 159
OpenGLContext tests/dek_surf.py Lines: 54
OpenGLContext tests/dek_texturesurf.py Lines: 70
OpenGLContext tests/redbook_alpha3D.py Lines: 79, 86
OpenGLContext tests/glprint.py Lines: 32
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson12.py Lines: 72
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson13.py Lines: 65
OpenGL-Demo PyOpenGL-Demo/proesch/nurbs/nurbs.py Lines: 45, 188, 193
OpenGL-Demo PyOpenGL-Demo/dek/texturesurf.py Lines: 94
OpenGL-Demo PyOpenGL-Demo/dek/OglSurface/triangle.py Lines: 42, 86
OpenGL-Demo PyOpenGL-Demo/GLUT/gears.py Lines: 235, 241, 247
OpenGL-Demo PyOpenGL-Demo/GLUT/molehill.py Lines: 139
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/lorentz.py Lines: 31
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/text.py Lines: 23
OpenGL-Demo PyOpenGL-Demo/redbook/teapots.py Lines: 91
OpenGL-Demo PyOpenGL-Demo/tom/demo.py Lines: 80
OpenGL-Demo PyOpenGL-Demo/tom/lorentz.py Lines: 25
OpenGL-Demo PyOpenGL-Demo/tom/text.py Lines: 10
{Artistic License} PymmLib pymmlib/mmLib/OpenGLDriver.py Lines: 75
{LGPL} PyUI2 renderers/openglGlut.py Lines: 80
{LGPL} PyUI2 renderers/openglPygame.py Lines: 61, 294
{LGPL} PyUI2 renderers/openglSoya.py Lines: 58
{LGPL} PyUI2 system/openglgraphics.py Lines: 46, 58, 346
{LGPL} VisionEgg VisionEgg/SphereMap.py Lines: 147, 148, 432, 651, 948, 949
{LGPL} VisionEgg VisionEgg/Textures.py Lines: 1744, 1745
{LGPL} PyMT pymt/obj.py Lines: 22, 123
{LGPL} PyMT pymt/graphx/statement.py Lines: 53, 75
{LGPL} PyMT pymt/lib/squirtle.py Lines: 15, 465
{LGPL} Pyggel pyggel/data.py Lines: 207
{LGPL} pygl2d pygl2d/image.py Lines: 133
{LGPL or GPL or MPL} Kamaelia Code/Python/Kamaelia/Kamaelia/UI/OpenGL/OpenGLComponent.py Lines: 389
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/Utils/TopologyViewer3D.py Lines: 319
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/OpenGLComponent.py Lines: 386
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Sketches/playground/Object3D.py Lines: 185
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/playground/Object3D.py Lines: 185
{GPL3} OpenGL-Programmable 02-displaylist.py Lines: 81

MathML Rendering

Powered by MathJax