2014-03-28 19:06:55 +00:00
|
|
|
<!DOCTYPE refentry [ <!ENTITY % mathent SYSTEM "math.ent"> %mathent; ]>
|
|
|
|
|
|
|
|
<!-- Converted by db4-upgrade version 1.1 -->
|
|
|
|
|
|
|
|
<refentry xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="glBindTransformFeedback">
|
|
|
|
<info>
|
2013-11-03 11:43:50 +00:00
|
|
|
<copyright>
|
2014-03-28 19:06:55 +00:00
|
|
|
<year>2010-2014</year>
|
2013-11-03 11:43:50 +00:00
|
|
|
<holder>Khronos Group.</holder>
|
|
|
|
</copyright>
|
2014-03-28 19:06:55 +00:00
|
|
|
</info>
|
2013-10-10 23:58:54 +00:00
|
|
|
<refmeta>
|
|
|
|
<refentrytitle>glBindTransformFeedback</refentrytitle>
|
|
|
|
<manvolnum>3G</manvolnum>
|
|
|
|
</refmeta>
|
|
|
|
<refnamediv>
|
|
|
|
<refname>glBindTransformFeedback</refname>
|
|
|
|
<refpurpose>bind a transform feedback object</refpurpose>
|
|
|
|
</refnamediv>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refsynopsisdiv>
|
|
|
|
<title>C Specification</title>
|
2013-10-10 23:58:54 +00:00
|
|
|
<funcsynopsis>
|
|
|
|
<funcprototype>
|
|
|
|
<funcdef>void <function>glBindTransformFeedback</function></funcdef>
|
|
|
|
<paramdef>GLenum <parameter>target</parameter></paramdef>
|
|
|
|
<paramdef>GLuint <parameter>id</parameter></paramdef>
|
|
|
|
</funcprototype>
|
|
|
|
</funcsynopsis>
|
|
|
|
</refsynopsisdiv>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refsect1 xml:id="parameters"><title>Parameters</title>
|
2013-10-10 23:58:54 +00:00
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>target</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Specifies the target to which to bind the transform feedback object <parameter>id</parameter>. <parameter>target</parameter>
|
|
|
|
must be <constant>GL_TRANSFORM_FEEDBACK</constant>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>id</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Specifies the name of a transform feedback object reserved by <citerefentry><refentrytitle>glGenTransformFeedbacks</refentrytitle></citerefentry>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refsect1 xml:id="description"><title>Description</title>
|
2013-10-10 23:58:54 +00:00
|
|
|
<para>
|
|
|
|
<function>glBindTransformFeedback</function> binds the transform feedback object with name <parameter>id</parameter> to the current
|
|
|
|
GL state. <parameter>id</parameter> must be a name previously returned from a call to
|
|
|
|
<citerefentry><refentrytitle>glGenTransformFeedbacks</refentrytitle></citerefentry>. If <parameter>id</parameter> has not
|
|
|
|
previously been bound, a new transform feedback object with name <parameter>id</parameter> and initialized with with the
|
|
|
|
default transform state vector is created.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
In the initial state, a default transform feedback object is bound and treated as
|
|
|
|
a transform feedback object with a name of zero. If the name zero is subsequently bound, the default
|
|
|
|
transform feedback object is again bound to the GL state.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
While a transform feedback buffer object is bound, GL operations on the target
|
|
|
|
to which it is bound affect the bound transform feedback object, and queries of the
|
|
|
|
target to which a transform feedback object is bound return state from the bound
|
|
|
|
object. When buffer objects are bound for transform feedback, they are attached to
|
2014-03-28 19:06:55 +00:00
|
|
|
the currently bound transform feedback object. Buffer objects are used for transform feedback only if they are attached
|
|
|
|
to the currently bound transform feedback object.
|
2013-10-10 23:58:54 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refsect1 xml:id="errors"><title>Errors</title>
|
2013-10-10 23:58:54 +00:00
|
|
|
<para>
|
|
|
|
<constant>GL_INVALID_ENUM</constant> is generated if <parameter>target</parameter> is not <constant>GL_TRANSFORM_FEEDBACK</constant>.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<constant>GL_INVALID_OPERATION</constant> is generated if the transform feedback operation is
|
|
|
|
active on the currently bound transform feedback object, and that operation is not paused.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<constant>GL_INVALID_OPERATION</constant> is generated if <parameter>id</parameter> is not
|
|
|
|
zero or the name of a transform feedback object returned from a previous call to
|
|
|
|
<citerefentry><refentrytitle>glGenTransformFeedbacks</refentrytitle></citerefentry>, or
|
|
|
|
if such a name has been deleted by <citerefentry><refentrytitle>glDeleteTransformFeedbacks</refentrytitle></citerefentry>.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refsect1 xml:id="associatedgets"><title>Associated Gets</title>
|
2013-10-10 23:58:54 +00:00
|
|
|
<para>
|
|
|
|
<citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_TRANSFORM_FEEDBACK_BINDING</constant>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refsect1 xml:id="versions">
|
|
|
|
<title>API Version Support</title>
|
|
|
|
<informaltable>
|
|
|
|
<tgroup cols="4" align="left">
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="apifunchead.xml" xpointer="xpointer(/*/*)"/>
|
|
|
|
<tbody>
|
|
|
|
<row>
|
|
|
|
<entry>glBindTransformFeedback</entry>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="apiversion.xml" xpointer="xpointer(/*/*[@role='es30']/*)"/>
|
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</informaltable>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 xml:id="seealso"><title>See Also</title>
|
2013-10-10 23:58:54 +00:00
|
|
|
<para>
|
|
|
|
<citerefentry><refentrytitle>glGenTransformFeedbacks</refentrytitle></citerefentry>,
|
|
|
|
<citerefentry><refentrytitle>glDeleteTransformFeedbacks</refentrytitle></citerefentry>,
|
|
|
|
<citerefentry><refentrytitle>glIsTransformFeedback</refentrytitle></citerefentry>,
|
|
|
|
<citerefentry><refentrytitle>glBeginTransformFeedback</refentrytitle></citerefentry>,
|
|
|
|
<citerefentry><refentrytitle>glPauseTransformFeedback</refentrytitle></citerefentry>,
|
|
|
|
<citerefentry><refentrytitle>glResumeTransformFeedback</refentrytitle></citerefentry>,
|
|
|
|
<citerefentry><refentrytitle>glEndTransformFeedback</refentrytitle></citerefentry>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refsect1 xml:id="Copyright"><title>Copyright</title>
|
2013-10-10 23:58:54 +00:00
|
|
|
<para>
|
2014-03-28 19:06:55 +00:00
|
|
|
Copyright <trademark class="copyright"/> 2010-2014 Khronos Group.
|
2013-11-03 11:43:50 +00:00
|
|
|
This material may be distributed subject to the terms and conditions set forth in
|
2013-10-10 23:58:54 +00:00
|
|
|
the Open Publication License, v 1.0, 8 June 1999.
|
2014-03-28 19:06:55 +00:00
|
|
|
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://opencontent.org/openpub/">http://opencontent.org/openpub/</link>.
|
2013-10-10 23:58:54 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|