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=
"glGetFragDataLocation">
9 <holder>Khronos Group
</holder>
12 <refentrytitle>glGetFragDataLocation
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>glGetFragDataLocation
</refname>
17 <refpurpose>query the bindings of color numbers to user-defined varying out variables
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>GLint
<function>glGetFragDataLocation
</function></funcdef>
23 <paramdef>GLuint
<parameter>program
</parameter></paramdef>
24 <paramdef>const char *
<parameter>name
</parameter></paramdef>
28 <refsect1 id=
"parameters"><title>Parameters
</title>
31 <term><parameter>program
</parameter></term>
34 The name of the program containing varying out variable whose binding to query
39 <term><parameter>name
</parameter></term>
42 The name of the user-defined varying out variable whose binding to query
48 <refsect1 id=
"description"><title>Description
</title>
50 <function>glGetFragDataLocation
</function> retrieves the assigned color number binding for the user-defined
51 varying out variable
<parameter>name
</parameter> for program
<parameter>program
</parameter>.
<parameter>program
</parameter>
52 must have previously been linked.
<parameter>name
</parameter> must be a null-terminated string. If
<parameter>name
</parameter>
53 is not the name of an active user-defined varying out fragment shader variable within
<parameter>program
</parameter>, -
1 will
57 <refsect1 id=
"errors"><title>Errors
</title>
59 <constant>GL_INVALID_OPERATION
</constant> is generated if
<parameter>program
</parameter> is not the name of a program object.
62 <refsect1 id=
"seealso"><title>See Also
</title>
64 <citerefentry><refentrytitle>glCreateProgram
</refentrytitle></citerefentry>,
65 <citerefentry><refentrytitle>glBindFragDataLocation
</refentrytitle></citerefentry>
68 <refsect1 id=
"Copyright"><title>Copyright
</title>
70 Copyright
<trademark class=
"copyright"></trademark> 2010 Khronos Group.
71 This material may be distributed subject to the terms and conditions set forth in
72 the Open Publication License, v
1.0,
8 June
1999.
73 <ulink url=
"http://opencontent.org/openpub/">http://opencontent.org/openpub/
</ulink>.