rename upstream-man-pages to upstream-doc
[clinton/guile-figl.git] / upstream-doc / man4 / glVertexAttribBinding.xml
CommitLineData
7faf1d71
AW
1<?xml version="1.0" encoding="UTF-8"?>\r
2<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"\r
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">\r
4<refentry id="glVertexAttribBinding">\r
5 <refmeta>\r
6 <refmetainfo>\r
7 <copyright>\r
8 <year>2012</year>\r
9 <holder>Khronos Group</holder>\r
10 </copyright>\r
11 </refmetainfo>\r
12 <refentrytitle>glVertexAttribBinding</refentrytitle>\r
13 <manvolnum>3G</manvolnum>\r
14 </refmeta>\r
15 <refnamediv>\r
16 <refname>glVertexAttribBinding</refname>\r
17 <refpurpose>associate a vertex attribute and a vertex buffer binding</refpurpose>\r
18 </refnamediv>\r
19 <refsynopsisdiv><title>C Specification</title>\r
20 <funcsynopsis>\r
21 <funcprototype>\r
22 <funcdef>void <function>glVertexAttribBinding</function></funcdef>\r
23 <paramdef>GLuint <parameter>attribindex</parameter></paramdef>\r
24 <paramdef>GLuint <parameter>bindingindex</parameter></paramdef>\r
25 </funcprototype>\r
26 </funcsynopsis>\r
27 </refsynopsisdiv>\r
28 <refsect1 id="parameters"><title>Parameters</title>\r
29 <variablelist>\r
30 <varlistentry>\r
31 <term><parameter>attribindex</parameter></term>\r
32 <listitem>\r
33 <para>\r
34 The index of the attribute to associate with a vertex buffer binding.\r
35 </para>\r
36 </listitem>\r
37 </varlistentry>\r
38 <varlistentry>\r
39 <term><parameter>bindingindex</parameter></term>\r
40 <listitem>\r
41 <para>\r
42 The index of the vertex buffer binding with which to associate the generic vertex attribute.\r
43 </para>\r
44 </listitem>\r
45 </varlistentry>\r
46 </variablelist>\r
47 </refsect1>\r
48 <refsect1 id="description"><title>Description</title>\r
49 <para>\r
50 <function>glVertexAttribBinding</function>, establishes an association between the generic vertex\r
51 attribute whose index is given by <parameter>attribindex</parameter> and a vertex buffer binding\r
52 whose index is given by <parameter>bindingindex</parameter>. <parameter>attribindex</parameter>\r
53 must be less than the value of <constant>GL_MAX_VERTEX_ATTRIBS</constant> and <parameter>bindingindex</parameter>\r
54 must be less than the value of <constant>GL_MAX_VERTEX_ATTRIB_BINDINGS</constant>.\r
55 </para>\r
56 </refsect1>\r
57 <refsect1 id="errors"><title>Errors</title>\r
58 <para>\r
59 <constant>GL_INVALID_VALUE</constant> is generated if <parameter>attribindex</parameter> is greater than\r
60 or equal to the value of <constant>GL_MAX_VERTEX_ATTRIBS</constant>.\r
61 </para>\r
62 <para>\r
63 <constant>GL_INVAILD_VALUE</constant> is generated if <parameter>bindingindex</parameter> is greater than\r
64 or equal to the value of <constant>GL_MAX_VERTEX_ATTRIB_BINDINGS</constant>.\r
65 </para>\r
66 <para>\r
67 <constant>GL_INVALID_OPERATION</constant> is generated if no vertex array object is bound.\r
68 </para>\r
69 </refsect1>\r
70 <refsect1 id="associatedgets"><title>Associated Gets</title>\r
71 <para>\r
72 <citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with arguments <constant>GL_MAX_VERTEX_ATTRIB_BINDINGS</constant>,\r
73 <constant>GL_VERTEX_BINDING_DIVISOR</constant>.\r
74 </para>\r
75 </refsect1>\r
76 <refsect1 id="seealso"><title>See Also</title>\r
77 <para>\r
78 <citerefentry><refentrytitle>glBindVertexBuffer</refentrytitle></citerefentry>,\r
79 <citerefentry><refentrytitle>glVertexAttribFormat</refentrytitle></citerefentry>,\r
80 <citerefentry><refentrytitle>glVertexBindingDivisor</refentrytitle></citerefentry>,\r
81 <citerefentry><refentrytitle>glVertexAttribPointer</refentrytitle></citerefentry>.\r
82 </para>\r
83 </refsect1>\r
84 <refsect1 id="Copyright"><title>Copyright</title>\r
85 <para>\r
86 Copyright <trademark class="copyright"></trademark> 2012 Khronos Group. \r
87 This material may be distributed subject to the terms and conditions set forth in \r
88 the Open Publication License, v 1.0, 8 June 1999.\r
89 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r
90 </para>\r
91 </refsect1>\r
92</refentry>\r