a960c9698ca4639f787ff260e10630f217ac53fc
[clinton/guile-figl.git] / upstream-man-pages / man3 / glGenVertexArrays.xml
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="glGenVertexArrays">
5 <refmeta>
6 <refmetainfo>
7 <copyright>
8 <year>2010</year>
9 <holder>Khronos Group</holder>
10 </copyright>
11 </refmetainfo>
12 <refentrytitle>glGenVertexArrays</refentrytitle>
13 <manvolnum>3G</manvolnum>
14 </refmeta>
15 <refnamediv>
16 <refname>glGenVertexArrays</refname>
17 <refpurpose>generate vertex array object names</refpurpose>
18 </refnamediv>
19 <refsynopsisdiv><title>C Specification</title>
20 <funcsynopsis>
21 <funcprototype>
22 <funcdef>void <function>glGenVertexArrays</function></funcdef>
23 <paramdef>GLsizei <parameter>n</parameter></paramdef>
24 <paramdef>GLuint *<parameter>arrays</parameter></paramdef>
25 </funcprototype>
26 </funcsynopsis>
27 </refsynopsisdiv>
28 <!-- eqn: ignoring delim $$ -->
29 <refsect1 id="parameters"><title>Parameters</title>
30 <variablelist>
31 <varlistentry>
32 <term><parameter>n</parameter></term>
33 <listitem>
34 <para>
35 Specifies the number of vertex array object names to generate.
36 </para>
37 </listitem>
38 </varlistentry>
39 <varlistentry>
40 <term><parameter>arrays</parameter></term>
41 <listitem>
42 <para>
43 Specifies an array in which the generated vertex array object names are stored.
44 </para>
45 </listitem>
46 </varlistentry>
47 </variablelist>
48 </refsect1>
49 <refsect1 id="description"><title>Description</title>
50 <para>
51 <function>glGenVertexArrays</function> returns <parameter>n</parameter> vertex array object names in <parameter>arrays</parameter>.
52 There is no guarantee that the names form a contiguous set of integers; however, it is guaranteed that none of the returned names
53 was in use immediately before the call to <function>glGenVertexArrays</function>.
54 </para>
55 <para>
56 Vertex array object names returned by a call to <function>glGenVertexArrays</function> are not returned by subsequent calls, unless
57 they are first deleted with <citerefentry><refentrytitle>glDeleteVertexArrays</refentrytitle></citerefentry>.
58 </para>
59 <para>
60 The names returned in <parameter>arrays</parameter> are marked as used, for the purposes of <function>glGenVertexArrays</function> only,
61 but they acquire state and type only when they are first bound.
62 </para>
63 </refsect1>
64 <refsect1 id="errors"><title>Errors</title>
65 <para>
66 <constant>GL_INVALID_VALUE</constant> is generated if <parameter>n</parameter> is negative.
67 </para>
68 </refsect1>
69 <refsect1 id="seealso"><title>See Also</title>
70 <para>
71 <citerefentry><refentrytitle>glBindVertexArray</refentrytitle></citerefentry>,
72 <citerefentry><refentrytitle>glDeleteVertexArrays</refentrytitle></citerefentry>
73 </para>
74 </refsect1>
75 <refsect1 id="Copyright"><title>Copyright</title>
76 <para>
77 Copyright <trademark class="copyright"></trademark> 2010 Khronos Group.
78 This material may be distributed subject to the terms and conditions set forth in
79 the Open Publication License, v 1.0, 8 June 1999.
80 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.
81 </para>
82 </refsect1>
83 </refentry>