Commit | Line | Data |
---|---|---|
7faf1d71 AW |
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "xhtml1-transitional.dtd"> |
2 | <!-- saved from url=(0013)about:internet --> | |
3 | <?xml-stylesheet type="text/xsl" href="mathml.xsl"?><html xmlns="http://www.w3.org/1999/xhtml" xmlns:pref="http://www.w3.org/2002/Math/preference" pref:renderer="mathplayer-dl"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>glGenLists</title><meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /></head><body><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 border="0" summary="Function synopsis" cellspacing="0" cellpadding="0"><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> | |
4 | Specifies the number of contiguous empty display lists | |
5 | to be generated. | |
6 | </p></dd></dl></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="description"></a><h2>Description</h2><p> | |
7 | <code class="function">glGenLists</code> has one argument, <em class="parameter"><code>range</code></em>. | |
8 | It returns an integer <span class="emphasis"><em>n</em></span> such that <em class="parameter"><code>range</code></em> contiguous | |
9 | empty display lists, | |
10 | named | |
11 | <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">n</mml:mi></mml:math>, | |
12 | <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> | |
13 | ||
14 | <mml:mrow> | |
15 | <mml:mi mathvariant="italic">n</mml:mi> | |
16 | <mml:mo>+</mml:mo> | |
17 | <mml:mn>1</mml:mn> | |
18 | </mml:mrow> | |
19 | </mml:math>, | |
20 | <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> | |
21 | ||
22 | <mml:mi mathvariant="italic">...</mml:mi> | |
23 | </mml:math>, | |
24 | <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> | |
25 | ||
26 | <mml:mrow> | |
27 | <mml:mi mathvariant="italic">n</mml:mi> | |
28 | <mml:mo>+</mml:mo> | |
29 | <mml:mi mathvariant="italic">range</mml:mi> | |
30 | <mml:mo>-</mml:mo> | |
31 | <mml:mn>1</mml:mn> | |
32 | </mml:mrow> | |
33 | </mml:math>, | |
34 | are created. | |
35 | If <em class="parameter"><code>range</code></em> is 0, | |
36 | if there is no group of <em class="parameter"><code>range</code></em> contiguous names available, | |
37 | or if any error is generated, | |
38 | no display lists are generated, | |
39 | and 0 is returned. | |
40 | </p></div><div class="refsect1" lang="en" xml:lang="en"><a id="errors"></a><h2>Errors</h2><p> | |
41 | <code class="constant">GL_INVALID_VALUE</code> is generated if <em class="parameter"><code>range</code></em> is negative. | |
42 | </p><p> | |
43 | <code class="constant">GL_INVALID_OPERATION</code> is generated if <code class="function">glGenLists</code> | |
44 | is executed between the execution of <a class="citerefentry" href="glBegin.xml"><span class="citerefentry"><span class="refentrytitle">glBegin</span></span></a> | |
45 | and the corresponding execution of <a class="citerefentry" href="glEnd.xml"><span class="citerefentry"><span class="refentrytitle">glEnd</span></span></a>. | |
46 | </p></div><div class="refsect1" lang="en" xml:lang="en"><a id="associatedgets"></a><h2>Associated Gets</h2><p> | |
47 | <a class="citerefentry" href="glIsList.xml"><span class="citerefentry"><span class="refentrytitle">glIsList</span></span></a> | |
48 | </p></div><div class="refsect1" lang="en" xml:lang="en"><a id="seealso"></a><h2>See Also</h2><p> | |
49 | <a class="citerefentry" href="glCallList.xml"><span class="citerefentry"><span class="refentrytitle">glCallList</span></span></a>, | |
50 | <a class="citerefentry" href="glCallLists.xml"><span class="citerefentry"><span class="refentrytitle">glCallLists</span></span></a>, | |
51 | <a class="citerefentry" href="glDeleteLists.xml"><span class="citerefentry"><span class="refentrytitle">glDeleteLists</span></span></a>, | |
52 | <a class="citerefentry" href="glNewList.xml"><span class="citerefentry"><span class="refentrytitle">glNewList</span></span></a> | |
53 | </p></div><div class="refsect1" lang="en" xml:lang="en"><a id="Copyright"></a><h2>Copyright</h2><p> | |
54 | Copyright <span class="trademark"></span>© 1991-2006 | |
55 | Silicon Graphics, Inc. This document is licensed under the SGI | |
56 | Free Software B License. For details, see | |
57 | <a class="ulink" href="http://oss.sgi.com/projects/FreeB/" target="_top">http://oss.sgi.com/projects/FreeB/</a>. | |
58 | </p></div></div></body></html> |