rename upstream-man-pages to upstream-doc
[clinton/guile-figl.git] / upstream-doc / man4 / xhtml / glDrawTransformFeedback.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "xhtml1-transitional.dtd">
3 <!-- saved from url=(0013)about:internet -->
4 <?xml-stylesheet type="text/xsl" href="mathml.xsl"?><html xmlns="http://www.w3.org/1999/xhtml" xmlns:pref="http://www.w3.org/2002/Math/preference" pref:renderer="mathplayer-dl"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><link rel="stylesheet" type="text/css" href="opengl-man.css" /><title>glDrawTransformFeedback - OpenGL 4 Reference Pages</title><meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /></head><body><div class="refentry" lang="en" xml:lang="en"><a id="glDrawTransformFeedback"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>glDrawTransformFeedback — render primitives using a count derived from a transform feedback object</p></div><div class="refsynopsisdiv"><h2>C Specification</h2><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0"><tr><td><code class="funcdef">void <b class="fsfunc">glDrawTransformFeedback</b>(</code></td><td>GLenum  </td><td><var class="pdparam">mode</var>, </td></tr><tr><td> </td><td>GLuint  </td><td><var class="pdparam">id</var><code>)</code>;</td></tr></table></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="parameters"></a><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><em class="parameter"><code>mode</code></em></span></dt><dd><p>
5 Specifies what kind of primitives to render.
6 Symbolic constants
7 <code class="constant">GL_POINTS</code>,
8 <code class="constant">GL_LINE_STRIP</code>,
9 <code class="constant">GL_LINE_LOOP</code>,
10 <code class="constant">GL_LINES</code>,
11 <code class="constant">GL_LINE_STRIP_ADJACENCY</code>,
12 <code class="constant">GL_LINES_ADJACENCY</code>,
13 <code class="constant">GL_TRIANGLE_STRIP</code>,
14 <code class="constant">GL_TRIANGLE_FAN</code>,
15 <code class="constant">GL_TRIANGLES</code>,
16 <code class="constant">GL_TRIANGLE_STRIP_ADJACENCY</code>,
17 <code class="constant">GL_TRIANGLES_ADJACENCY</code>, and
18 <code class="constant">GL_PATCHES</code>
19 are accepted.
20 </p></dd><dt><span class="term"><em class="parameter"><code>id</code></em></span></dt><dd><p>
21 Specifies the name of a transform feedback object from which to retrieve a primitive count.
22 </p></dd></dl></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="description"></a><h2>Description</h2><p>
23 <code class="function">glDrawTransformFeedback</code> draws primitives of a type specified by <em class="parameter"><code>mode</code></em> using
24 a count retrieved from the transform feedback specified by <em class="parameter"><code>id</code></em>. Calling <code class="function">glDrawTransformFeedback</code>
25 is equivalent to calling <a href="glDrawArrays.xml"><span class="citerefentry"><span class="refentrytitle">glDrawArrays</span></span></a> with <em class="parameter"><code>mode</code></em>
26 as specified, <em class="parameter"><code>first</code></em> set to zero, and <em class="parameter"><code>count</code></em> set to the number of vertices captured
27 on vertex stream zero the last time transform feedback was active on the transform feedback object named by <em class="parameter"><code>id</code></em>.
28 </p></div><div class="refsect1" lang="en" xml:lang="en"><a id="errors"></a><h2>Errors</h2><p>
29 <code class="constant">GL_INVALID_ENUM</code> is generated if <em class="parameter"><code>mode</code></em> is not an accepted value.
30 </p><p>
31 <code class="constant">GL_INVALID_VALUE</code> is generated if <em class="parameter"><code>id</code></em> is not the name of a transform feedback
32 object.
33 </p><p>
34 <code class="constant">GL_INVALID_OPERATION</code> is generated if a non-zero buffer object name is bound to an
35 enabled array and the buffer object's data store is currently mapped.
36 </p><p>
37 <code class="constant">GL_INVALID_OPERATION</code> is generated if a geometry shader is active and <em class="parameter"><code>mode</code></em>
38 is incompatible with the input primitive type of the geometry shader in the currently installed program object.
39 </p><p>
40 <code class="constant">GL_INVALID_OPERATION</code> is generated if <em class="parameter"><code>mode</code></em> is <code class="constant">GL_PATCHES</code>
41 and no tessellation control shader is active.
42 </p><p>
43 <code class="constant">GL_INVALID_OPERATION</code> is generated if <a href="glEndTransformFeedback.xml"><span class="citerefentry"><span class="refentrytitle">glEndTransformFeedback</span></span></a>
44 has never been called while the transform feedback object named by <em class="parameter"><code>id</code></em> was bound.
45 </p></div><div class="refsect1" lang="en" xml:lang="en"><a id="seealso"></a><h2>See Also</h2><p>
46 <a href="glDrawArrays.xml"><span class="citerefentry"><span class="refentrytitle">glDrawArrays</span></span></a>,
47 <a href="glDrawArraysInstanced.xml"><span class="citerefentry"><span class="refentrytitle">glDrawArraysInstanced</span></span></a>,
48 <a href="glDrawElements.xml"><span class="citerefentry"><span class="refentrytitle">glDrawElements</span></span></a>,
49 <a href="glDrawRangeElements.xml"><span class="citerefentry"><span class="refentrytitle">glDrawRangeElements</span></span></a>,
50 <a href="glDrawTransformFeedbackStream.xml"><span class="citerefentry"><span class="refentrytitle">glDrawTransformFeedbackStream</span></span></a>
51 </p></div><div class="refsect1" lang="en" xml:lang="en"><a id="Copyright"></a><h2>Copyright</h2><p>
52 Copyright <span class="trademark"></span>© 2010 Khronos Group.
53 This material may be distributed subject to the terms and conditions set forth in
54 the Open Publication License, v 1.0, 8 June 1999.
55 <a href="http://opencontent.org/openpub/" target="_top">http://opencontent.org/openpub/</a>.
56 </p></div></div></body></html>