/usr/share/doc/libghc-opengl-doc/html/Graphics-Rendering-OpenGL-GL-Rectangles.html is in libghc-opengl-doc 2.2.3.1-1.
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 | <!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.1: 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><tr><th>Safe Haskell</th><td>Safe-Infered</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 -> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:rectv">rectv</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.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><a href="Graphics-Rendering-OpenGL-GL-BeginEnd.html#v:renderPrimitive">renderPrimitive</a></code> <code><a href="Graphics-Rendering-OpenGL-GL-BeginEnd.html#t:Polygon">Polygon</a></code> $ do
<code><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#v:vertex">vertex</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#v:vertex">vertex</a></code> (<code><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a></code> x2 y1)
<code><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#v:vertex">vertex</a></code> (<code><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a></code> x2 y2)
<code><a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#v:vertex">vertex</a></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 -> <a href="Graphics-Rendering-OpenGL-GL-VertexSpec.html#t:Vertex2">Vertex2</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.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-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.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-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Rectangles.html#t:Rect">Rect</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Float">Float</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Rectangles.html#t:Rect">Rect</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int16">Int16</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-OpenGL-GL-Rectangles.html#t:Rect">Rect</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int32">Int32</a></td><td class="doc empty"> </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.10.0</p></div></body></html>
|