Commit | Line | Data |
---|---|---|
7faf1d71 AW |
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="glDrawTransformFeedback"> | |
5 | <refmeta> | |
6 | <refmetainfo> | |
7 | <copyright> | |
8 | <year>2010</year> | |
9 | <holder>Khronos Group.</holder> | |
10 | </copyright> | |
11 | </refmetainfo> | |
12 | <refentrytitle>glDrawTransformFeedback</refentrytitle> | |
13 | <manvolnum>3G</manvolnum> | |
14 | </refmeta> | |
15 | <refnamediv> | |
16 | <refname>glDrawTransformFeedback</refname> | |
17 | <refpurpose>render primitives using a count derived from a transform feedback object</refpurpose> | |
18 | </refnamediv> | |
19 | <refsynopsisdiv><title>C Specification</title> | |
20 | <funcsynopsis> | |
21 | <funcprototype> | |
22 | <funcdef>void <function>glDrawTransformFeedback</function></funcdef> | |
23 | <paramdef>GLenum <parameter>mode</parameter></paramdef> | |
24 | <paramdef>GLuint <parameter>id</parameter></paramdef> | |
25 | </funcprototype> | |
26 | </funcsynopsis> | |
27 | </refsynopsisdiv> | |
28 | <!-- eqn: ignoring delim $$ --> | |
29 | <refsect1 id="parameters"><title>Parameters</title> | |
30 | <variablelist> | |
31 | <varlistentry> | |
32 | <term><parameter>mode</parameter></term> | |
33 | <listitem> | |
34 | <para> | |
35 | Specifies what kind of primitives to render. | |
36 | Symbolic constants | |
37 | <constant>GL_POINTS</constant>, | |
38 | <constant>GL_LINE_STRIP</constant>, | |
39 | <constant>GL_LINE_LOOP</constant>, | |
40 | <constant>GL_LINES</constant>, | |
41 | <constant>GL_LINE_STRIP_ADJACENCY</constant>, | |
42 | <constant>GL_LINES_ADJACENCY</constant>, | |
43 | <constant>GL_TRIANGLE_STRIP</constant>, | |
44 | <constant>GL_TRIANGLE_FAN</constant>, | |
45 | <constant>GL_TRIANGLES</constant>, | |
46 | <constant>GL_TRIANGLE_STRIP_ADJACENCY</constant>, | |
47 | <constant>GL_TRIANGLES_ADJACENCY</constant>, and | |
48 | <constant>GL_PATCHES</constant> | |
49 | are accepted. | |
50 | </para> | |
51 | </listitem> | |
52 | </varlistentry> | |
53 | <varlistentry> | |
54 | <term><parameter>id</parameter></term> | |
55 | <listitem> | |
56 | <para> | |
57 | Specifies the name of a transform feedback object from which to retrieve a primitive count. | |
58 | </para> | |
59 | </listitem> | |
60 | </varlistentry> | |
61 | </variablelist> | |
62 | </refsect1> | |
63 | <refsect1 id="description"><title>Description</title> | |
64 | <para> | |
65 | <function>glDrawTransformFeedback</function> draws primitives of a type specified by <parameter>mode</parameter> using | |
66 | a count retrieved from the transform feedback specified by <parameter>id</parameter>. Calling <function>glDrawTransformFeedback</function> | |
67 | is equivalent to calling <citerefentry><refentrytitle>glDrawArrays</refentrytitle></citerefentry> with <parameter>mode</parameter> | |
68 | as specified, <parameter>first</parameter> set to zero, and <parameter>count</parameter> set to the number of vertices captured | |
69 | on vertex stream zero the last time transform feedback was active on the transform feedback object named by <parameter>id</parameter>. | |
70 | </para> | |
71 | </refsect1> | |
72 | <refsect1 id="errors"><title>Errors</title> | |
73 | <para> | |
74 | <constant>GL_INVALID_ENUM</constant> is generated if <parameter>mode</parameter> is not an accepted value. | |
75 | </para> | |
76 | <para> | |
77 | <constant>GL_INVALID_VALUE</constant> is generated if <parameter>id</parameter> is not the name of a transform feedback | |
78 | object. | |
79 | </para> | |
80 | <para> | |
81 | <constant>GL_INVALID_OPERATION</constant> is generated if a non-zero buffer object name is bound to an | |
82 | enabled array and the buffer object's data store is currently mapped. | |
83 | </para> | |
84 | <para> | |
85 | <constant>GL_INVALID_OPERATION</constant> is generated if a geometry shader is active and <parameter>mode</parameter> | |
86 | is incompatible with the input primitive type of the geometry shader in the currently installed program object. | |
87 | </para> | |
88 | <para> | |
89 | <constant>GL_INVALID_OPERATION</constant> is generated if <parameter>mode</parameter> is <constant>GL_PATCHES</constant> | |
90 | and no tessellation control shader is active. | |
91 | </para> | |
92 | <para> | |
93 | <constant>GL_INVALID_OPERATION</constant> is generated if <citerefentry><refentrytitle>glEndTransformFeedback</refentrytitle></citerefentry> | |
94 | has never been called while the transform feedback object named by <parameter>id</parameter> was bound. | |
95 | </para> | |
96 | </refsect1> | |
97 | <refsect1 id="seealso"><title>See Also</title> | |
98 | <para> | |
99 | <citerefentry><refentrytitle>glDrawArrays</refentrytitle></citerefentry>, | |
100 | <citerefentry><refentrytitle>glDrawArraysInstanced</refentrytitle></citerefentry>, | |
101 | <citerefentry><refentrytitle>glDrawElements</refentrytitle></citerefentry>, | |
102 | <citerefentry><refentrytitle>glDrawRangeElements</refentrytitle></citerefentry>, | |
103 | <citerefentry><refentrytitle>glDrawTransformFeedbackStream</refentrytitle></citerefentry> | |
104 | </para> | |
105 | </refsect1> | |
106 | <refsect1 id="Copyright"><title>Copyright</title> | |
107 | <para> | |
108 | Copyright <trademark class="copyright"></trademark> 2010 Khronos Group. | |
109 | This material may be distributed subject to the terms and conditions set forth in | |
110 | the Open Publication License, v 1.0, 8 June 1999. | |
111 | <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>. | |
112 | </para> | |
113 | </refsect1> | |
114 | </refentry> |