mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-26 05:45:28 +00:00
109 lines
4.6 KiB
XML
109 lines
4.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
|
|
"http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
|
|
<refentry id="glGenLists">
|
|
<refmeta>
|
|
<refmetainfo>
|
|
<copyright>
|
|
<year>1991-2006</year>
|
|
<holder>Silicon Graphics, Inc.</holder>
|
|
</copyright>
|
|
</refmetainfo>
|
|
<refentrytitle>glGenLists</refentrytitle>
|
|
<manvolnum>3G</manvolnum>
|
|
</refmeta>
|
|
<refnamediv>
|
|
<refname>glGenLists</refname>
|
|
<refpurpose>generate a contiguous set of empty display lists</refpurpose>
|
|
</refnamediv>
|
|
<refsynopsisdiv><title>C Specification</title>
|
|
<funcsynopsis>
|
|
<funcprototype>
|
|
<funcdef>GLuint <function>glGenLists</function></funcdef>
|
|
<paramdef>GLsizei <parameter>range</parameter></paramdef>
|
|
</funcprototype>
|
|
</funcsynopsis>
|
|
</refsynopsisdiv>
|
|
<refsect1 id="parameters"><title>Parameters</title>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>range</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Specifies the number of contiguous empty display lists
|
|
to be generated.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</refsect1>
|
|
<refsect1 id="description"><title>Description</title>
|
|
<para>
|
|
<function>glGenLists</function> has one argument, <parameter>range</parameter>.
|
|
It returns an integer <emphasis>n</emphasis> such that <parameter>range</parameter> contiguous
|
|
empty display lists,
|
|
named
|
|
<inlineequation><mml:math><mml:mi mathvariant="italic">n</mml:mi></mml:math></inlineequation>,
|
|
<inlineequation><mml:math>
|
|
<!-- eqn: n+1:-->
|
|
<mml:mrow>
|
|
<mml:mi mathvariant="italic">n</mml:mi>
|
|
<mml:mo>+</mml:mo>
|
|
<mml:mn>1</mml:mn>
|
|
</mml:mrow>
|
|
</mml:math></inlineequation>,
|
|
<inlineequation><mml:math>
|
|
<!-- eqn: ...:-->
|
|
<mml:mi mathvariant="italic">...</mml:mi>
|
|
</mml:math></inlineequation>,
|
|
<inlineequation><mml:math>
|
|
<!-- eqn: n + range - 1:-->
|
|
<mml:mrow>
|
|
<mml:mi mathvariant="italic">n</mml:mi>
|
|
<mml:mo>+</mml:mo>
|
|
<mml:mi mathvariant="italic">range</mml:mi>
|
|
<mml:mo>-</mml:mo>
|
|
<mml:mn>1</mml:mn>
|
|
</mml:mrow>
|
|
</mml:math></inlineequation>,
|
|
are created.
|
|
If <parameter>range</parameter> is 0,
|
|
if there is no group of <parameter>range</parameter> contiguous names available,
|
|
or if any error is generated,
|
|
no display lists are generated,
|
|
and 0 is returned.
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 id="errors"><title>Errors</title>
|
|
<para>
|
|
<constant>GL_INVALID_VALUE</constant> is generated if <parameter>range</parameter> is negative.
|
|
</para>
|
|
<para>
|
|
<constant>GL_INVALID_OPERATION</constant> is generated if <function>glGenLists</function>
|
|
is executed between the execution of <citerefentry><refentrytitle>glBegin</refentrytitle></citerefentry>
|
|
and the corresponding execution of <citerefentry><refentrytitle>glEnd</refentrytitle></citerefentry>.
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 id="associatedgets"><title>Associated Gets</title>
|
|
<para>
|
|
<citerefentry><refentrytitle>glIsList</refentrytitle></citerefentry>
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 id="seealso"><title>See Also</title>
|
|
<para>
|
|
<citerefentry><refentrytitle>glCallList</refentrytitle></citerefentry>,
|
|
<citerefentry><refentrytitle>glCallLists</refentrytitle></citerefentry>,
|
|
<citerefentry><refentrytitle>glDeleteLists</refentrytitle></citerefentry>,
|
|
<citerefentry><refentrytitle>glNewList</refentrytitle></citerefentry>
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 id="Copyright"><title>Copyright</title>
|
|
<para>
|
|
Copyright <trademark class="copyright"></trademark> 1991-2006
|
|
Silicon Graphics, Inc. This document is licensed under the SGI
|
|
Free Software B License. For details, see
|
|
<ulink url="http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/</ulink>.
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|