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=
"glBindVertexArray">
9 <holder>Khronos Group
</holder>
12 <refentrytitle>glBindVertexArray
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>glBindVertexArray
</refname>
17 <refpurpose>bind a vertex array object
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>void
<function>glBindVertexArray
</function></funcdef>
23 <paramdef>GLuint
<parameter>array
</parameter></paramdef>
27 <refsect1 id=
"parameters"><title>Parameters
</title>
30 <term><parameter>array
</parameter></term>
33 Specifies the name of the vertex array to bind.
39 <refsect1 id=
"description"><title>Description
</title>
41 <function>glBindVertexArray
</function> binds the vertex array object with name
<parameter>array
</parameter>.
<parameter>array
</parameter>
42 is the name of a vertex array object previously returned from a call to
<citerefentry><refentrytitle>glGenVertexArrays
</refentrytitle></citerefentry>,
43 or zero to break the existing vertex array object binding.
46 If no vertex array object with name
<parameter>array
</parameter> exists, one is created when
<parameter>array
</parameter> is first bound. If the bind
47 is successful no change is made to the state of the vertex array object, and any previous vertex array object binding is broken.
50 <refsect1 id=
"errors"><title>Errors
</title>
52 <constant>GL_INVALID_OPERATION
</constant> is generated if
<parameter>array
</parameter> is not zero or the name of a vertex array object
53 previously returned from a call to
<citerefentry><refentrytitle>glGenVertexArrays
</refentrytitle></citerefentry>.
56 <refsect1 id=
"seealso"><title>See Also
</title>
58 <citerefentry><refentrytitle>glGenVertexArrays
</refentrytitle></citerefentry>,
59 <citerefentry><refentrytitle>glDeleteVertexArrays
</refentrytitle></citerefentry>
60 <citerefentry><refentrytitle>glVertexAttribPointer
</refentrytitle></citerefentry>
61 <citerefentry><refentrytitle>glEnableVertexAttribArray
</refentrytitle></citerefentry>
64 <refsect1 id=
"Copyright"><title>Copyright
</title>
66 Copyright
<trademark class=
"copyright"></trademark> 2010 Khronos Group.
67 This material may be distributed subject to the terms and conditions set forth in
68 the Open Publication License, v
1.0,
8 June
1999.
69 <ulink url=
"http://opencontent.org/openpub/">http://opencontent.org/openpub/
</ulink>.