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=
"glGenBuffers">
9 <holder>Sams Publishing
</holder>
12 <refentrytitle>glGenBuffers
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>glGenBuffers
</refname>
17 <refpurpose>generate buffer object names
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>void
<function>glGenBuffers
</function></funcdef>
23 <paramdef>GLsizei
<parameter>n
</parameter></paramdef>
24 <paramdef>GLuint *
<parameter>buffers
</parameter></paramdef>
28 <refsect1 id=
"parameters"><title>Parameters
</title>
31 <term><parameter>n
</parameter></term>
34 Specifies the number of buffer object names to be generated.
39 <term><parameter>buffers
</parameter></term>
42 Specifies an array in which the generated buffer object names are stored.
48 <refsect1 id=
"description"><title>Description
</title>
50 <function>glGenBuffers
</function> returns
<parameter>n
</parameter> buffer object names in
<parameter>buffers
</parameter>.
51 There is no guarantee that the names form a contiguous set of integers;
52 however, it is guaranteed that none of the returned names was in use
53 immediately before the call to
<function>glGenBuffers
</function>.
56 Buffer object names returned by a call to
<function>glGenBuffers
</function> are not returned by
57 subsequent calls, unless they are first deleted with
58 <citerefentry><refentrytitle>glDeleteBuffers
</refentrytitle></citerefentry>.
61 No buffer objects are associated with the returned buffer object names until they are first bound by calling
62 <citerefentry><refentrytitle>glBindBuffer
</refentrytitle></citerefentry>.
65 <refsect1 id=
"errors"><title>Errors
</title>
67 <constant>GL_INVALID_VALUE
</constant> is generated if
<parameter>n
</parameter> is negative.
70 <refsect1 id=
"associatedgets"><title>Associated Gets
</title>
72 <citerefentry><refentrytitle>glIsBuffer
</refentrytitle></citerefentry>
75 <refsect1 id=
"seealso"><title>See Also
</title>
77 <citerefentry><refentrytitle>glBindBuffer
</refentrytitle></citerefentry>,
78 <citerefentry><refentrytitle>glDeleteBuffers
</refentrytitle></citerefentry>,
79 <citerefentry><refentrytitle>glGet
</refentrytitle></citerefentry>
82 <refsect1 id=
"Copyright"><title>Copyright
</title>
84 Copyright
<trademark class=
"copyright"></trademark> 2005 Addison-Wesley.
85 This material may be distributed subject to the terms and conditions set forth in
86 the Open Publication License, v
1.0,
8 June
1999.
87 <ulink url=
"http://opencontent.org/openpub/">http://opencontent.org/openpub/
</ulink>.