Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 2cca44f12eb8ef579d4d0baff7068f29 > files > 218

ghc-OpenGL-devel-2.2.3.0-7.fc15.i686.rpm

<!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.Rectangles</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Graphics-Rendering-OpenGL-GL-Rectangles.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-Rendering-OpenGL-GL-Rectangles.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-2.2.3.0: A binding for the OpenGL graphics system</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable</td></tr><tr><th>Stability</th><td>stable</td></tr><tr><th>Maintainer</th><td>sven.panne@aedion.de</td></tr></table><p class="caption">Graphics.Rendering.OpenGL.GL.Rectangles</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module corresponds to section 2.10 (Rectangles) of the OpenGL 2.1 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">class</span>  <a href="#t:Rect">Rect</a> a  <span class="keyword">where</span><ul class="subs"><li><a href="#v:rect">rect</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a> a -&gt; <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li><a href="#v:rectv">rectv</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li></ul></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">class</span>  <a name="t:Rect" class="def">Rect</a> a  <span class="keyword">where</span><a href="src/Graphics-Rendering-OpenGL-GL-Rectangles.html#Rect" class="link">Source</a></p><div class="doc"><p><code><a href="Graphics-Rendering-OpenGL-GL-Rectangles.html#v:rect">rect</a></code> and <code><a href="Graphics-Rendering-OpenGL-GL-Rectangles.html#v:rectv">rectv</a></code> support efficient specification of rectangles as two
 corner points. Each rectangle command takes four arguments, organized either
 as two consecutive pairs of (<em>x</em>, <em>y</em>) coordinates, or as two pointers to
 arrays, each containing an (<em>x</em>, <em>y</em>) pair. The resulting rectangle is
 defined in the <em>z</em> = 0 plane.
</p><p><code><code><a href="Graphics-Rendering-OpenGL-GL-Rectangles.html#v:rect">rect</a></code> (<code><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a></code> x1 y1) (<code><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a></code> x2, y2)</code> is exactly equivalent to the
 following sequence:
</p><pre>
    <code>Graphics.Rendering.OpenGL.GL.BeginEnd.renderPrimitive</code> <code>Graphics.Rendering.OpenGL.GL.BeginEnd.Polygon</code> $ do
        <code>Graphics.Rendering.OpenGL.GL.VertexSpec.vertex</code> (<code><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a></code> x1 y1)
        <code>Graphics.Rendering.OpenGL.GL.VertexSpec.vertex</code> (<code><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a></code> x2 y1)
        <code>Graphics.Rendering.OpenGL.GL.VertexSpec.vertex</code> (<code><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a></code> x2 y2)
        <code>Graphics.Rendering.OpenGL.GL.VertexSpec.vertex</code> (<code><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a></code> x1 y2)
</pre><p>Note that if the second vertex is above and to the right of the first vertex,
 the rectangle is constructed with a counterclockwise winding.
</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:rect" class="def">rect</a> :: <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a> a -&gt; <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-Rectangles.html#rect" class="link">Source</a></p><p class="src"><a name="v:rectv" class="def">rectv</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-OpenGL-GL-Rectangles.html#rectv" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:Rect" class="caption collapser" onclick="toggleSection('i:Rect')">Instances</p><div id="section.i:Rect" class="show"><table><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Rectangles.html#t:Rect">Rect</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Rectangles.html#t:Rect">Rect</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Float">Float</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Rectangles.html#t:Rect">Rect</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int16">Int16</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Rectangles.html#t:Rect">Rect</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int32">Int32</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.9.2</p></div></body></html>