This file is indexed.

/usr/share/doc/libghc-opengl-doc/html/Graphics-Rendering-OpenGL-GL-PrimitiveMode.html is in libghc-opengl-doc 3.0.1.0-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Graphics.Rendering.OpenGL.GL.PrimitiveMode</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Graphics-Rendering-OpenGL-GL-PrimitiveMode.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-Rendering-OpenGL-GL-PrimitiveMode.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">OpenGL-3.0.1.0: A binding for the OpenGL graphics system</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>(c) Sven Panne 2002-2016, Tobias Markus 2016</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>Sven Panne &lt;svenpanne@gmail.com&gt;</td></tr><tr><th>Stability</th><td>stable</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Graphics.Rendering.OpenGL.GL.PrimitiveMode</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Primitive Modes</a></li><li><a href="#g:2">Patches (Tessellation)</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module corresponds to section 10.1 (Primitive Types) of the OpenGL 4.4
 specs.</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span> <a href="#t:PrimitiveMode">PrimitiveMode</a><ul class="subs"><li>= <a href="#v:Points">Points</a></li><li>| <a href="#v:Lines">Lines</a></li><li>| <a href="#v:LineLoop">LineLoop</a></li><li>| <a href="#v:LineStrip">LineStrip</a></li><li>| <a href="#v:Triangles">Triangles</a></li><li>| <a href="#v:TriangleStrip">TriangleStrip</a></li><li>| <a href="#v:TriangleFan">TriangleFan</a></li><li>| <a href="#v:Quads">Quads</a></li><li>| <a href="#v:QuadStrip">QuadStrip</a></li><li>| <a href="#v:Polygon">Polygon</a></li><li>| <a href="#v:Patches">Patches</a></li></ul></li><li class="src short"><a href="#v:patchVertices">patchVertices</a> :: <a href="file:///usr/share/doc/libghc-statevar-doc/html/Data-StateVar.html#t:StateVar">StateVar</a> <a href="file:///usr/share/doc/libghc-openglraw-doc/html/Graphics-GL-Types.html#t:GLsizei">GLsizei</a></li><li class="src short"><a href="#v:maxPatchVertices">maxPatchVertices</a> :: <a href="file:///usr/share/doc/libghc-statevar-doc/html/Data-StateVar.html#t:GettableStateVar">GettableStateVar</a> <a href="file:///usr/share/doc/libghc-openglraw-doc/html/Graphics-GL-Types.html#t:GLsizei">GLsizei</a></li><li class="src short"><a href="#v:patchDefaultOuterLevel">patchDefaultOuterLevel</a> :: <a href="file:///usr/share/doc/libghc-statevar-doc/html/Data-StateVar.html#t:StateVar">StateVar</a> (<a href="file:///usr/share/doc/libghc-openglraw-doc/html/Graphics-GL-Types.html#t:GLfloat">GLfloat</a>, <a href="file:///usr/share/doc/libghc-openglraw-doc/html/Graphics-GL-Types.html#t:GLfloat">GLfloat</a>, <a href="file:///usr/share/doc/libghc-openglraw-doc/html/Graphics-GL-Types.html#t:GLfloat">GLfloat</a>, <a href="file:///usr/share/doc/libghc-openglraw-doc/html/Graphics-GL-Types.html#t:GLfloat">GLfloat</a>)</li><li class="src short"><a href="#v:patchDefaultInnerLevel">patchDefaultInnerLevel</a> :: <a href="file:///usr/share/doc/libghc-statevar-doc/html/Data-StateVar.html#t:StateVar">StateVar</a> (<a href="file:///usr/share/doc/libghc-openglraw-doc/html/Graphics-GL-Types.html#t:GLfloat">GLfloat</a>, <a href="file:///usr/share/doc/libghc-openglraw-doc/html/Graphics-GL-Types.html#t:GLfloat">GLfloat</a>)</li><li class="src short"><a href="#v:maxTessGenLevel">maxTessGenLevel</a> :: <a href="file:///usr/share/doc/libghc-statevar-doc/html/Data-StateVar.html#t:GettableStateVar">GettableStateVar</a> <a href="file:///usr/share/doc/libghc-openglraw-doc/html/Graphics-GL-Types.html#t:GLsizei">GLsizei</a></li></ul></div><div id="interface"><h1 id="g:1">Primitive Modes</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:PrimitiveMode" class="def">PrimitiveMode</a> <a href="src/Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#PrimitiveMode" class="link">Source</a> <a href="#t:PrimitiveMode" class="selflink">#</a></p><div class="doc"><p>Specification of the way the vertices given during <code>renderPrimitive</code> are
 interpreted. In the description of the constructors, <em>n</em> is an integer count
 starting at one, and <em>N</em> is the total number of vertices specified.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Points" class="def">Points</a></td><td class="doc"><p>Treats each vertex as a single point. Vertex <em>n</em> defines point <em>n</em>.
 <em>N</em> points are drawn.</p></td></tr><tr><td class="src"><a id="v:Lines" class="def">Lines</a></td><td class="doc"><p>Treats each pair of vertices as an independent line segment. Vertices
 2<em>n</em>-1 and 2<em>n</em> define line <em>n</em>. <em>N</em>/2 lines are drawn.</p></td></tr><tr><td class="src"><a id="v:LineLoop" class="def">LineLoop</a></td><td class="doc"><p>Draws a connected group of line segments from the first vertex to the
 last, then back to the first. Vertices <em>n</em> and <em>n</em>+1 define line <em>n</em>.
 The last line, however, is defined by vertices <em>N</em> and 1. <em>N</em> lines
 are drawn.</p></td></tr><tr><td class="src"><a id="v:LineStrip" class="def">LineStrip</a></td><td class="doc"><p>Draws a connected group of line  segments from the first vertex to the
 last. Vertices <em>n</em> and <em>n</em>+1 define line <em>n</em>. <em>N</em>-1 lines are drawn.</p></td></tr><tr><td class="src"><a id="v:Triangles" class="def">Triangles</a></td><td class="doc"><p>Treats each triplet of vertices as an independent triangle. Vertices
 <em>3n-2</em>, <em>3n-1</em>, and <em>3n</em> define triangle <em>n</em>. <em>N/3</em> triangles are drawn.</p></td></tr><tr><td class="src"><a id="v:TriangleStrip" class="def">TriangleStrip</a></td><td class="doc"><p>Draws a connected group of triangles. One triangle is defined for each
 vertex presented after the first two vertices. For odd <em>n</em>, vertices
 <em>n</em>, <em>n</em>+1, and <em>n</em>+2 define triangle <em>n</em>. For even <em>n</em>, vertices <em>n</em>+1,
 <em>n</em>, and <em>n</em>+2 define triangle <em>n</em>. <em>N</em>-2 triangles are drawn.</p></td></tr><tr><td class="src"><a id="v:TriangleFan" class="def">TriangleFan</a></td><td class="doc"><p>Draws a connected group of triangles. One triangle is defined for each
 vertex presented after the first two vertices. Vertices 1, <em>n</em>+1, and
 <em>n</em>+2 define triangle <em>n</em>. <em>N</em>-2 triangles are drawn.</p></td></tr><tr><td class="src"><a id="v:Quads" class="def">Quads</a></td><td class="doc"><p>Treats each group of four vertices as an independent quadrilateral.
 Vertices 4<em>n</em>-3, 4<em>n</em>-2, 4<em>n</em>-1, and 4<em>n</em> define quadrilateral <em>n</em>.
 <em>N</em>/4 quadrilaterals are drawn.</p></td></tr><tr><td class="src"><a id="v:QuadStrip" class="def">QuadStrip</a></td><td class="doc"><p>Draws a connected group of quadrilaterals. One quadrilateral is
defined for each pair of vertices presented after the first pair.
 Vertices 2<em>n</em>-1, 2<em>n</em>, 2<em>n</em>+2, and 2<em>n</em>+1 define quadrilateral <em>n</em>.
 <em>N</em>/2-1 quadrilaterals are drawn. Note that the order in which vertices
 are used to construct a quadrilateral from strip data is different from
 that used with independent data.</p></td></tr><tr><td class="src"><a id="v:Polygon" class="def">Polygon</a></td><td class="doc"><p>Draws a single, convex polygon. Vertices 1 through <em>N</em> define this
 polygon.</p></td></tr><tr><td class="src"><a id="v:Patches" class="def">Patches</a></td><td class="doc"><p>Only used in conjunction with tessellation. The number of vertices per
 patch can be set with <code><a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#v:patchVertices">patchVertices</a></code>.</p></td></tr></table></div><div class="subs instances"><p id="control.i:PrimitiveMode" class="caption collapser" onclick="toggleSection('i:PrimitiveMode')">Instances</p><div id="section.i:PrimitiveMode" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:PrimitiveMode:Eq:1" class="instance expander" onclick="toggleSection('i:id:PrimitiveMode:Eq:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a></span> <a href="src/Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#line-80" class="link">Source</a> <a href="#t:PrimitiveMode" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:PrimitiveMode:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a> -&gt; <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a> -&gt; <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:PrimitiveMode:Ord:2" class="instance expander" onclick="toggleSection('i:id:PrimitiveMode:Ord:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a></span> <a href="src/Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#line-80" class="link">Source</a> <a href="#t:PrimitiveMode" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:PrimitiveMode:Ord:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a> -&gt; <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ordering">Ordering</a> <a href="#v:compare" class="selflink">#</a></p><p class="src"><a href="#v:-60-">(&lt;)</a> :: <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a> -&gt; <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60-" class="selflink">#</a></p><p class="src"><a href="#v:-60--61-">(&lt;=)</a> :: <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a> -&gt; <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62-">(&gt;)</a> :: <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a> -&gt; <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62-" class="selflink">#</a></p><p class="src"><a href="#v:-62--61-">(&gt;=)</a> :: <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a> -&gt; <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62--61-" class="selflink">#</a></p><p class="src"><a href="#v:max">max</a> :: <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a> -&gt; <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a> -&gt; <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a> <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a> -&gt; <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a> -&gt; <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a> <a href="#v:min" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:PrimitiveMode:Show:3" class="instance expander" onclick="toggleSection('i:id:PrimitiveMode:Show:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:Show">Show</a> <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a></span> <a href="src/Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#line-80" class="link">Source</a> <a href="#t:PrimitiveMode" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:PrimitiveMode:Show:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#t:PrimitiveMode">PrimitiveMode</a>] -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><h1 id="g:2">Patches (Tessellation)</h1><div class="top"><p class="src"><a id="v:patchVertices" class="def">patchVertices</a> :: <a href="file:///usr/share/doc/libghc-statevar-doc/html/Data-StateVar.html#t:StateVar">StateVar</a> <a href="file:///usr/share/doc/libghc-openglraw-doc/html/Graphics-GL-Types.html#t:GLsizei">GLsizei</a> <a href="src/Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#patchVertices" class="link">Source</a> <a href="#v:patchVertices" class="selflink">#</a></p><div class="doc"><p><code><a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#v:patchVertices">patchVertices</a></code> is the number of vertices per patch primitive.</p><p>An <code><a href="Graphics-Rendering-OpenGL-GLU-Errors.html#v:InvalidValue">InvalidValue</a></code> is generated if
 <code><a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#v:patchVertices">patchVertices</a></code> is set to a value less than or equal to zero or greater
 than the implementation-dependent maximum value <code><a href="Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#v:maxPatchVertices">maxPatchVertices</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:maxPatchVertices" class="def">maxPatchVertices</a> :: <a href="file:///usr/share/doc/libghc-statevar-doc/html/Data-StateVar.html#t:GettableStateVar">GettableStateVar</a> <a href="file:///usr/share/doc/libghc-openglraw-doc/html/Graphics-GL-Types.html#t:GLsizei">GLsizei</a> <a href="src/Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#maxPatchVertices" class="link">Source</a> <a href="#v:maxPatchVertices" class="selflink">#</a></p><div class="doc"><p>Contains the maximumum number of vertices in a single patch.</p></div></div><div class="top"><p class="src"><a id="v:patchDefaultOuterLevel" class="def">patchDefaultOuterLevel</a> :: <a href="file:///usr/share/doc/libghc-statevar-doc/html/Data-StateVar.html#t:StateVar">StateVar</a> (<a href="file:///usr/share/doc/libghc-openglraw-doc/html/Graphics-GL-Types.html#t:GLfloat">GLfloat</a>, <a href="file:///usr/share/doc/libghc-openglraw-doc/html/Graphics-GL-Types.html#t:GLfloat">GLfloat</a>, <a href="file:///usr/share/doc/libghc-openglraw-doc/html/Graphics-GL-Types.html#t:GLfloat">GLfloat</a>, <a href="file:///usr/share/doc/libghc-openglraw-doc/html/Graphics-GL-Types.html#t:GLfloat">GLfloat</a>) <a href="src/Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#patchDefaultOuterLevel" class="link">Source</a> <a href="#v:patchDefaultOuterLevel" class="selflink">#</a></p><div class="doc"><p>Contains the four default outer tessellation levels to be used when no
 tessellation control shader is present.</p></div></div><div class="top"><p class="src"><a id="v:patchDefaultInnerLevel" class="def">patchDefaultInnerLevel</a> :: <a href="file:///usr/share/doc/libghc-statevar-doc/html/Data-StateVar.html#t:StateVar">StateVar</a> (<a href="file:///usr/share/doc/libghc-openglraw-doc/html/Graphics-GL-Types.html#t:GLfloat">GLfloat</a>, <a href="file:///usr/share/doc/libghc-openglraw-doc/html/Graphics-GL-Types.html#t:GLfloat">GLfloat</a>) <a href="src/Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#patchDefaultInnerLevel" class="link">Source</a> <a href="#v:patchDefaultInnerLevel" class="selflink">#</a></p><div class="doc"><p>Contains the two default inner tessellation levels to be used when no
 tessellation control shader is present.</p></div></div><div class="top"><p class="src"><a id="v:maxTessGenLevel" class="def">maxTessGenLevel</a> :: <a href="file:///usr/share/doc/libghc-statevar-doc/html/Data-StateVar.html#t:GettableStateVar">GettableStateVar</a> <a href="file:///usr/share/doc/libghc-openglraw-doc/html/Graphics-GL-Types.html#t:GLsizei">GLsizei</a> <a href="src/Graphics-Rendering-OpenGL-GL-PrimitiveMode.html#maxTessGenLevel" class="link">Source</a> <a href="#v:maxTessGenLevel" class="selflink">#</a></p><div class="doc"><p>Contains the maximum allowed tessellation level.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.2</p></div></body></html>