/usr/share/doc/libghc-opengl-doc/html/src/Graphics-Rendering-OpenGL-GL-PointParameter.html is in libghc-opengl-doc 2.8.0.0-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 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Generated by HsColour, http://code.haskell.org/~malcolm/hscolour/ -->
<title>Graphics/Rendering/OpenGL/GL/PointParameter.hs</title>
<link type='text/css' rel='stylesheet' href='hscolour.css' />
</head>
<body>
<pre><a name="line-1"></a><span class='hs-comment'>-- #hide</span>
<a name="line-2"></a><span class='hs-comment'>--------------------------------------------------------------------------------</span>
<a name="line-3"></a><span class='hs-comment'>-- |</span>
<a name="line-4"></a><span class='hs-comment'>-- Module : Graphics.Rendering.OpenGL.GL.PointParameter</span>
<a name="line-5"></a><span class='hs-comment'>-- Copyright : (c) Sven Panne 2002-2009</span>
<a name="line-6"></a><span class='hs-comment'>-- License : BSD-style (see the file libraries/OpenGL/LICENSE)</span>
<a name="line-7"></a><span class='hs-comment'>-- </span>
<a name="line-8"></a><span class='hs-comment'>-- Maintainer : sven.panne@aedion.de</span>
<a name="line-9"></a><span class='hs-comment'>-- Stability : stable</span>
<a name="line-10"></a><span class='hs-comment'>-- Portability : portable</span>
<a name="line-11"></a><span class='hs-comment'>--</span>
<a name="line-12"></a><span class='hs-comment'>-- This is a purely internal module for setting point parameters.</span>
<a name="line-13"></a><span class='hs-comment'>--</span>
<a name="line-14"></a><span class='hs-comment'>--------------------------------------------------------------------------------</span>
<a name="line-15"></a>
<a name="line-16"></a><span class='hs-keyword'>module</span> <span class='hs-conid'>Graphics</span><span class='hs-varop'>.</span><span class='hs-conid'>Rendering</span><span class='hs-varop'>.</span><span class='hs-conid'>OpenGL</span><span class='hs-varop'>.</span><span class='hs-conid'>GL</span><span class='hs-varop'>.</span><span class='hs-conid'>PointParameter</span> <span class='hs-layout'>(</span>
<a name="line-17"></a> <span class='hs-conid'>PointParameter</span><span class='hs-layout'>(</span><span class='hs-keyglyph'>..</span><span class='hs-layout'>)</span><span class='hs-layout'>,</span> <span class='hs-varid'>pointParameterf</span><span class='hs-layout'>,</span> <span class='hs-varid'>pointParameterfv</span>
<a name="line-18"></a><span class='hs-layout'>)</span> <span class='hs-keyword'>where</span>
<a name="line-19"></a>
<a name="line-20"></a><span class='hs-keyword'>import</span> <span class='hs-conid'>Foreign</span><span class='hs-varop'>.</span><span class='hs-conid'>Ptr</span>
<a name="line-21"></a><span class='hs-keyword'>import</span> <span class='hs-conid'>Graphics</span><span class='hs-varop'>.</span><span class='hs-conid'>Rendering</span><span class='hs-varop'>.</span><span class='hs-conid'>OpenGL</span><span class='hs-varop'>.</span><span class='hs-conid'>Raw</span><span class='hs-varop'>.</span><span class='hs-conid'>ARB</span><span class='hs-varop'>.</span><span class='hs-conid'>Compatibility</span> <span class='hs-layout'>(</span>
<a name="line-22"></a> <span class='hs-varid'>gl_POINT_DISTANCE_ATTENUATION</span><span class='hs-layout'>,</span> <span class='hs-varid'>gl_POINT_SIZE_MAX</span><span class='hs-layout'>,</span> <span class='hs-varid'>gl_POINT_SIZE_MIN</span> <span class='hs-layout'>)</span>
<a name="line-23"></a><span class='hs-keyword'>import</span> <span class='hs-conid'>Graphics</span><span class='hs-varop'>.</span><span class='hs-conid'>Rendering</span><span class='hs-varop'>.</span><span class='hs-conid'>OpenGL</span><span class='hs-varop'>.</span><span class='hs-conid'>Raw</span><span class='hs-varop'>.</span><span class='hs-conid'>Core31</span>
<a name="line-24"></a>
<a name="line-25"></a><span class='hs-comment'>--------------------------------------------------------------------------------</span>
<a name="line-26"></a>
<a name="line-27"></a><a name="PointParameter"></a><span class='hs-keyword'>data</span> <span class='hs-conid'>PointParameter</span> <span class='hs-keyglyph'>=</span>
<a name="line-28"></a> <span class='hs-conid'>PointSizeMin</span>
<a name="line-29"></a> <span class='hs-keyglyph'>|</span> <span class='hs-conid'>PointSizeMax</span>
<a name="line-30"></a> <span class='hs-keyglyph'>|</span> <span class='hs-conid'>PointFadeThresholdSize</span>
<a name="line-31"></a> <span class='hs-keyglyph'>|</span> <span class='hs-conid'>PointDistanceAttenuation</span>
<a name="line-32"></a>
<a name="line-33"></a><a name="marshalPointParameter"></a><span class='hs-definition'>marshalPointParameter</span> <span class='hs-keyglyph'>::</span> <span class='hs-conid'>PointParameter</span> <span class='hs-keyglyph'>-></span> <span class='hs-conid'>GLenum</span>
<a name="line-34"></a><span class='hs-definition'>marshalPointParameter</span> <span class='hs-varid'>x</span> <span class='hs-keyglyph'>=</span> <span class='hs-keyword'>case</span> <span class='hs-varid'>x</span> <span class='hs-keyword'>of</span>
<a name="line-35"></a> <span class='hs-conid'>PointSizeMin</span> <span class='hs-keyglyph'>-></span> <span class='hs-varid'>gl_POINT_SIZE_MIN</span>
<a name="line-36"></a> <span class='hs-conid'>PointSizeMax</span> <span class='hs-keyglyph'>-></span> <span class='hs-varid'>gl_POINT_SIZE_MAX</span>
<a name="line-37"></a> <span class='hs-conid'>PointFadeThresholdSize</span> <span class='hs-keyglyph'>-></span> <span class='hs-varid'>gl_POINT_FADE_THRESHOLD_SIZE</span>
<a name="line-38"></a> <span class='hs-conid'>PointDistanceAttenuation</span> <span class='hs-keyglyph'>-></span> <span class='hs-varid'>gl_POINT_DISTANCE_ATTENUATION</span>
<a name="line-39"></a>
<a name="line-40"></a><span class='hs-comment'>--------------------------------------------------------------------------------</span>
<a name="line-41"></a>
<a name="line-42"></a><a name="pointParameterf"></a><span class='hs-definition'>pointParameterf</span> <span class='hs-keyglyph'>::</span> <span class='hs-conid'>PointParameter</span> <span class='hs-keyglyph'>-></span> <span class='hs-conid'>GLfloat</span> <span class='hs-keyglyph'>-></span> <span class='hs-conid'>IO</span> <span class='hs-conid'>()</span>
<a name="line-43"></a><span class='hs-definition'>pointParameterf</span> <span class='hs-keyglyph'>=</span> <span class='hs-varid'>glPointParameterf</span> <span class='hs-varop'>.</span> <span class='hs-varid'>marshalPointParameter</span>
<a name="line-44"></a>
<a name="line-45"></a><a name="pointParameterfv"></a><span class='hs-definition'>pointParameterfv</span> <span class='hs-keyglyph'>::</span> <span class='hs-conid'>PointParameter</span> <span class='hs-keyglyph'>-></span> <span class='hs-conid'>Ptr</span> <span class='hs-conid'>GLfloat</span> <span class='hs-keyglyph'>-></span> <span class='hs-conid'>IO</span> <span class='hs-conid'>()</span>
<a name="line-46"></a><span class='hs-definition'>pointParameterfv</span> <span class='hs-keyglyph'>=</span> <span class='hs-varid'>glPointParameterfv</span> <span class='hs-varop'>.</span> <span class='hs-varid'>marshalPointParameter</span>
</pre></body>
</html>
|