rename upstream-man-pages to upstream-doc
[clinton/guile-figl.git] / upstream-doc / man3 / glGetFragDataIndex.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="glGetFragDataIndex">\r
5 <refmeta>\r
6 <refmetainfo>\r
7 <copyright>\r
8 <year>2010</year>\r
9 <holder>Khronos Group</holder>\r
10 </copyright>\r
11 </refmetainfo>\r
12 <refentrytitle>glGetFragDataIndex</refentrytitle>\r
13 <manvolnum>3G</manvolnum>\r
14 </refmeta>\r
15 <refnamediv>\r
16 <refname>glGetFragDataIndex</refname>\r
17 <refpurpose>query the bindings of color indices to user-defined varying out variables</refpurpose>\r
18 </refnamediv>\r
19 <refsynopsisdiv><title>C Specification</title>\r
20 <funcsynopsis>\r
21 <funcprototype>\r
22 <funcdef>GLint <function>glGetFragDataIndex</function></funcdef>\r
23 <paramdef>GLuint <parameter>program</parameter></paramdef>\r
24 <paramdef>const char * <parameter>name</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>program</parameter></term>\r
32 <listitem>\r
33 <para>\r
34 The name of the program containing varying out variable whose binding to query\r
35 </para>\r
36 </listitem>\r
37 </varlistentry>\r
38 <varlistentry>\r
39 <term><parameter>name</parameter></term>\r
40 <listitem>\r
41 <para>\r
42 The name of the user-defined varying out variable whose index to query\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>glGetFragDataIndex</function> returns the index of the fragment color to which the variable <parameter>name</parameter>\r
51 was bound when the program object <parameter>program</parameter> was last linked. If <parameter>name</parameter> is not a varying out\r
52 variable of <parameter>program</parameter>, or if an error occurs, -1 will be returned.\r
53 </para>\r
54 </refsect1>\r
55 <refsect1 id="notes"><title>Notes</title>\r
56 <para>\r
57 <function>glGetFragDataIndex</function> is available only if the GL version is 3.3 or greater.\r
58 </para>\r
59 </refsect1>\r
60 <refsect1 id="errors"><title>Errors</title>\r
61 <para>\r
62 <constant>GL_INVALID_OPERATION</constant> is generated if <parameter>program</parameter> is not the name of a program object.\r
63 </para>\r
64 </refsect1>\r
65 <refsect1 id="seealso"><title>See Also</title>\r
66 <para>\r
67 <citerefentry><refentrytitle>glCreateProgram</refentrytitle></citerefentry>,\r
68 <citerefentry><refentrytitle>glBindFragDataLocation</refentrytitle></citerefentry>,\r
69 <citerefentry><refentrytitle>glBindFragDataLocationIndexed</refentrytitle></citerefentry>,\r
70 <citerefentry><refentrytitle>glGetFragDataLocation</refentrytitle></citerefentry>\r
71 </para>\r
72 </refsect1>\r
73 <refsect1 id="Copyright"><title>Copyright</title>\r
74 <para>\r
75 Copyright <trademark class="copyright"></trademark> 2010 Khronos Group. \r
76 This material may be distributed subject to the terms and conditions set forth in \r
77 the Open Publication License, v 1.0, 8 June 1999.\r
78 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r
79 </para>\r
80 </refsect1>\r
81</refentry>\r