'\" t .\" Title: glGetFragDataLocation .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.76.1 .\" Date: 05/30/2012 .\" Manual: [FIXME: manual] .\" Source: [FIXME: source] .\" Language: English .\" .TH "GLGETFRAGDATALOCATIO" "3G" "05/30/2012" "[FIXME: source]" "[FIXME: manual]" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" glGetFragDataLocation \- query the bindings of color numbers to user\-defined varying out variables .SH "C SPECIFICATION" .HP \w'GLint\ glGetFragDataLocation('u .BI "GLint glGetFragDataLocation(GLuint\ " "program" ", const\ char\ *\ " "name" ");" .SH "PARAMETERS" .PP \fIprogram\fR .RS 4 The name of the program containing varying out variable whose binding to query .RE .PP \fIname\fR .RS 4 The name of the user\-defined varying out variable whose binding to query .RE .SH "DESCRIPTION" .PP \fBglGetFragDataLocation\fR retrieves the assigned color number binding for the user\-defined varying out variable \fIname\fR for program \fIprogram\fR\&. \fIprogram\fR must have previously been linked\&. \fIname\fR must be a null\-terminated string\&. If \fIname\fR is not the name of an active user\-defined varying out fragment shader variable within \fIprogram\fR, \-1 will be returned\&. .SH "ERRORS" .PP \fBGL_INVALID_OPERATION\fR is generated if \fIprogram\fR is not the name of a program object\&. .SH "SEE ALSO" .PP \fBglCreateProgram\fR(), \fBglBindFragDataLocation\fR() .SH "COPYRIGHT" .PP Copyright \(co 2010 Khronos Group\&. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1\&.0, 8 June 1999\&. \m[blue]\fBhttp://opencontent\&.org/openpub/\fR\m[]\&.