1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE book PUBLIC
"-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
4 <refentry id=
"glGenLists">
9 <holder>Silicon Graphics, Inc.
</holder>
12 <refentrytitle>glGenLists
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>glGenLists
</refname>
17 <refpurpose>generate a contiguous set of empty display lists
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>GLuint
<function>glGenLists
</function></funcdef>
23 <paramdef>GLsizei
<parameter>range
</parameter></paramdef>
27 <refsect1 id=
"parameters"><title>Parameters
</title>
30 <term><parameter>range
</parameter></term>
33 Specifies the number of contiguous empty display lists
40 <refsect1 id=
"description"><title>Description
</title>
42 <function>glGenLists
</function> has one argument,
<parameter>range
</parameter>.
43 It returns an integer
<emphasis>n
</emphasis> such that
<parameter>range
</parameter> contiguous
46 <inlineequation><mml:math><mml:mi mathvariant=
"italic">n
</mml:mi></mml:math></inlineequation>,
47 <inlineequation><mml:math>
50 <mml:mi mathvariant=
"italic">n
</mml:mi>
54 </mml:math></inlineequation>,
55 <inlineequation><mml:math>
57 <mml:mi mathvariant=
"italic">...
</mml:mi>
58 </mml:math></inlineequation>,
59 <inlineequation><mml:math>
60 <!-- eqn: n + range - 1:-->
62 <mml:mi mathvariant=
"italic">n
</mml:mi>
64 <mml:mi mathvariant=
"italic">range
</mml:mi>
68 </mml:math></inlineequation>,
70 If
<parameter>range
</parameter> is
0,
71 if there is no group of
<parameter>range
</parameter> contiguous names available,
72 or if any error is generated,
73 no display lists are generated,
77 <refsect1 id=
"errors"><title>Errors
</title>
79 <constant>GL_INVALID_VALUE
</constant> is generated if
<parameter>range
</parameter> is negative.
82 <constant>GL_INVALID_OPERATION
</constant> is generated if
<function>glGenLists
</function>
83 is executed between the execution of
<citerefentry><refentrytitle>glBegin
</refentrytitle></citerefentry>
84 and the corresponding execution of
<citerefentry><refentrytitle>glEnd
</refentrytitle></citerefentry>.
87 <refsect1 id=
"associatedgets"><title>Associated Gets
</title>
89 <citerefentry><refentrytitle>glIsList
</refentrytitle></citerefentry>
92 <refsect1 id=
"seealso"><title>See Also
</title>
94 <citerefentry><refentrytitle>glCallList
</refentrytitle></citerefentry>,
95 <citerefentry><refentrytitle>glCallLists
</refentrytitle></citerefentry>,
96 <citerefentry><refentrytitle>glDeleteLists
</refentrytitle></citerefentry>,
97 <citerefentry><refentrytitle>glNewList
</refentrytitle></citerefentry>
100 <refsect1 id=
"Copyright"><title>Copyright
</title>
102 Copyright
<trademark class=
"copyright"></trademark> 1991-
2006
103 Silicon Graphics, Inc. This document is licensed under the SGI
104 Free Software B License. For details, see
105 <ulink url=
"http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/
</ulink>.