633f65981b25ac429b6df71ca2eba18038c50995
[clinton/guile-figl.git] / upstream-man-pages / manglsl / gl_VertexID.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="gl_VertexID">
5 <refmeta>
6 <refmetainfo>
7 <copyright>
8 <year>2011</year>
9 <holder>Khronos Group</holder>
10 </copyright>
11 </refmetainfo>
12 <refentrytitle>gl_VertexID</refentrytitle>
13 <manvolnum>3G</manvolnum>
14 </refmeta>
15 <refnamediv>
16 <refname>gl_VertexID</refname>
17 <refpurpose>contains the index of the current vertex</refpurpose>
18 </refnamediv>
19 <refsynopsisdiv><title>Declaration</title>
20 <funcsynopsis>
21 <function>in int gl_VertexID;</function>
22 </funcsynopsis>
23 </refsynopsisdiv>
24 <refsect1 id="description"><title>Description</title>
25 <para>
26 <function>gl_VertexID</function> is a vertex language input variable that holds an
27 integer index for the vertex. The index is impliclty generated by <function>glDrawArrays</function>
28 and other commands that do not reference the content of the <constant>GL_ELEMENT_ARRAY_BUFFER</constant>, or
29 explicitly generated from the content of the <constant>GL_ELEMENT_ARRAY_BUFFER</constant>
30 by commands such as <function>glDrawElements</function>.
31 </para>
32 </refsect1>
33 <refsect1 id="versions"><title>Version Support</title>
34 <informaltable frame="topbot">
35 <tgroup cols="3" align="left">
36 <colspec colwidth="1.1*" />
37 <colspec colwidth="1*" align="center" />
38 <colspec colwidth="1*" align="center" />
39 <colspec colwidth="1*" align="center" />
40 <colspec colwidth="1*" align="center" />
41 <colspec colwidth="1*" align="center" />
42 <colspec colwidth="1*" align="center" />
43 <colspec colwidth="1*" align="center" />
44 <colspec colwidth="1*" align="center" />
45 <thead>
46 <row>
47 <entry rowsep="1" align="left"><emphasis role="bold">
48 Variable
49 </emphasis></entry>
50 <entry rowsep="1" align="left"><emphasis role="bold">
51 Version 1.10
52 </emphasis></entry>
53 <entry rowsep="1" align="left"><emphasis role="bold">
54 Version 1.20
55 </emphasis></entry>
56 <entry rowsep="1" align="left"><emphasis role="bold">
57 Version 1.30
58 </emphasis></entry>
59 <entry rowsep="1" align="left"><emphasis role="bold">
60 Version 1.40
61 </emphasis></entry>
62 <entry rowsep="1" align="left"><emphasis role="bold">
63 Version 1.50
64 </emphasis></entry>
65 <entry rowsep="1" align="left"><emphasis role="bold">
66 Version 3.30
67 </emphasis></entry>
68 <entry rowsep="1" align="left"><emphasis role="bold">
69 Version 4.00
70 </emphasis></entry>
71 <entry rowsep="1" align="left"><emphasis role="bold">
72 Version 4.10
73 </emphasis></entry>
74 </row>
75 <row>
76 <entry>
77 gl_VertexID
78 </entry>
79 <entry>
80 <emphasis>Y</emphasis>
81 </entry>
82 <entry>
83 <emphasis>Y</emphasis>
84 </entry>
85 <entry>
86 <emphasis>Y</emphasis>
87 </entry>
88 <entry>
89 <emphasis>Y</emphasis>
90 </entry>
91 <entry>
92 <emphasis>Y</emphasis>
93 </entry>
94 <entry>
95 <emphasis>Y</emphasis>
96 </entry>
97 <entry>
98 <emphasis>Y</emphasis>
99 </entry>
100 <entry>
101 <emphasis>Y</emphasis>
102 </entry>
103 </row>
104 </thead>
105 </tgroup>
106 </informaltable>
107 </refsect1>
108 <refsect1 id="seealso"><title>See Also</title>
109 <para>
110 <citerefentry><refentrytitle>gl_InstanceID</refentrytitle></citerefentry>
111 </para>
112 </refsect1>
113 <refsect1 id="Copyright"><title>Copyright</title>
114 <para>
115 Copyright <trademark class="copyright"></trademark> 2011 Khronos Group.
116 This material may be distributed subject to the terms and conditions set forth in
117 the Open Publication License, v 1.0, 8 June 1999.
118 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.
119 </para>
120 </refsect1>
121 </refentry>