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