-
Notifications
You must be signed in to change notification settings - Fork 94
/
glGenLists.xhtml
58 lines (55 loc) · 4.35 KB
/
glGenLists.xhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<div class="refentry" lang="en" xml:lang="en"><a id="glGenLists"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>glGenLists — generate a contiguous set of empty display lists</p></div><div class="refsynopsisdiv"><h2>C Specification</h2><div class="funcsynopsis"><table><tr><td><code class="funcdef">GLuint <b class="fsfunc">glGenLists</b>(</code></td><td>GLsizei </td><td><var class="pdparam">range</var><code>)</code>;</td></tr></table></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="parameters"></a><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><em class="parameter"><code>range</code></em></span></dt><dd><p>
Specifies the number of contiguous empty display lists
to be generated.
</p></dd></dl></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="description"></a><h2>Description</h2><p>
<code class="function">glGenLists</code> has one argument, <em class="parameter"><code>range</code></em>.
It returns an integer <span class="emphasis"><em>n</em></span> such that <em class="parameter"><code>range</code></em> contiguous
empty display lists,
named
<math overflow="scroll"><mi mathvariant="italic">n</mi></math>,
<math overflow="scroll">
<mrow>
<mi mathvariant="italic">n</mi>
<mo>+</mo>
<mn>1</mn>
</mrow>
</math>,
<math overflow="scroll">
<mi mathvariant="italic">...</mi>
</math>,
<math overflow="scroll">
<mrow>
<mi mathvariant="italic">n</mi>
<mo>+</mo>
<mi mathvariant="italic">range</mi>
<mo>-</mo>
<mn>1</mn>
</mrow>
</math>,
are created.
If <em class="parameter"><code>range</code></em> is 0,
if there is no group of <em class="parameter"><code>range</code></em> contiguous names available,
or if any error is generated,
no display lists are generated,
and 0 is returned.
</p></div><div class="refsect1" lang="en" xml:lang="en"><a id="errors"></a><h2>Errors</h2><p>
<code class="constant">GL_INVALID_VALUE</code> is generated if <em class="parameter"><code>range</code></em> is negative.
</p><p>
<code class="constant">GL_INVALID_OPERATION</code> is generated if <code class="function">glGenLists</code>
is executed between the execution of <a class="citerefentry" href="glBegin"><span class="citerefentry"><span class="refentrytitle">glBegin</span></span></a>
and the corresponding execution of <a class="citerefentry" href="glEnd"><span class="citerefentry"><span class="refentrytitle">glEnd</span></span></a>.
</p></div><div class="refsect1" lang="en" xml:lang="en"><a id="associatedgets"></a><h2>Associated Gets</h2><p>
<a class="citerefentry" href="glIsList"><span class="citerefentry"><span class="refentrytitle">glIsList</span></span></a>
</p></div>
{$pipelinestall}{$examples}
<div class="refsect1" lang="en" xml:lang="en"><a id="seealso"></a><h2>See Also</h2><p>
<a class="citerefentry" href="glCallList"><span class="citerefentry"><span class="refentrytitle">glCallList</span></span></a>,
<a class="citerefentry" href="glCallLists"><span class="citerefentry"><span class="refentrytitle">glCallLists</span></span></a>,
<a class="citerefentry" href="glDeleteLists"><span class="citerefentry"><span class="refentrytitle">glDeleteLists</span></span></a>,
<a class="citerefentry" href="glNewList"><span class="citerefentry"><span class="refentrytitle">glNewList</span></span></a>
</p></div><div class="refsect1" lang="en" xml:lang="en"><div id="Copyright"><h2>Copyright</h2><p>
Copyright © 1991-2006
Silicon Graphics, Inc. This document is licensed under the SGI
Free Software B License. For details, see
<a class="ulink" href="https://web.archive.org/web/20171022161616/http://oss.sgi.com/projects/FreeB/" target="_top">https://web.archive.org/web/20171022161616/http://oss.sgi.com/projects/FreeB/</a>.
</p></div></div></div>