/usr/share/doc/racket/sgl/overview.html is in racket-doc 6.1-4.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>1 Using OpenGL</title><link rel="stylesheet" type="text/css" href="../scribble.css" title="default"/><link rel="stylesheet" type="text/css" href="../racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-style.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../doc-site.css" title="default"/><script type="text/javascript" src="../scribble-common.js"></script><script type="text/javascript" src="../manual-racket.js"></script><script type="text/javascript" src="../doc-site.js"></script><script type="text/javascript" src="../local-redirect/local-redirect.js"></script><script type="text/javascript" src="../local-redirect/local-user-redirect.js"></script><!--[if IE 6]><style type="text/css">.SIEHidden { overflow: hidden; }</style><![endif]--></head><body id="doc-racket-lang-org"><div class="tocset"><div class="tocview"><div class="tocviewlist tocviewlisttopspace"><div class="tocviewtitle"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,"tocview_0");">▼</a></td><td></td><td><a href="index.html" class="tocviewlink" data-pltdoc="x">GL:<span class="mywbr"> </span> 3-<wbr></wbr>D Graphics</a></td></tr></table></div><div class="tocviewsublistonly" style="display: block;" id="tocview_0"><table cellspacing="0" cellpadding="0"><tr><td align="right">1 </td><td><a href="" class="tocviewselflink" data-pltdoc="x">Using Open<span class="mywbr"> </span>GL</a></td></tr><tr><td align="right">2 </td><td><a href="gl.html" class="tocviewlink" data-pltdoc="x">C-<wbr></wbr>Style Open<span class="mywbr"> </span>GL</a></td></tr><tr><td align="right">3 </td><td><a href="main.html" class="tocviewlink" data-pltdoc="x">Racket-<wbr></wbr>Style Open<span class="mywbr"> </span>GL</a></td></tr><tr><td align="right">4 </td><td><a href="gl-vectors.html" class="tocviewlink" data-pltdoc="x">Open<span class="mywbr"> </span>GL Vectors</a></td></tr><tr><td align="right">5 </td><td><a href="bitmaps.html" class="tocviewlink" data-pltdoc="x">Bitmaps</a></td></tr><tr><td align="right">6 </td><td><a href="init.html" class="tocviewlink" data-pltdoc="x">Initialization</a></td></tr><tr><td align="right"></td><td><a href="doc-index.html" class="tocviewlink" data-pltdoc="x">Index</a></td></tr></table></div></div></div></div><div class="maincolumn"><div class="main"><div class="navsettop"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, "6.1", "../");" onfocus="this.style.color="black"; this.style.textAlign="left"; if (this.value == "...search manuals...") this.value="";" onblur="if (this.value.match(/^ *$/)) { this.style.color="#888"; this.style.textAlign="center"; this.value="...search manuals..."; }"/></form> <a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot("6.1");">top</a></span><span class="navright"> <a href="index.html" title="backward to "GL: 3-D Graphics"" data-pltdoc="x">← prev</a> <a href="index.html" title="up to "GL: 3-D Graphics"" data-pltdoc="x">up</a> <a href="gl.html" title="forward to "2 C-Style OpenGL"" data-pltdoc="x">next →</a></span> </div><h3 x-source-module="(lib "sgl/scribblings/sgl.scrbl")" x-part-tag=""overview"">1<tt> </tt><a name="(part._overview)"></a>Using OpenGL</h3><p>The <a href="gl.html" class="RktModLink" data-pltdoc="x"><span class="RktSym">sgl/gl</span></a> library provides direct access to the
C-style OpenGL API, whereas the <a href="main.html" class="RktModLink" data-pltdoc="x"><span class="RktSym">sgl</span></a> library provides a
more Racket-like interface. The <a href="gl.html" class="RktModLink" data-pltdoc="x"><span class="RktSym">sgl/gl</span></a> library
provides a binding for each <span class="stt">#defined</span> constant and for most
functions in OpenGL 1.5 and GLU 1.3. The functions perform comparable
checking to their C-language counterparts; they check the types of
their arguments, but do not check the length of array arguments. The
<a href="main.html" class="RktModLink" data-pltdoc="x"><span class="RktSym">sgl</span></a> library provides wrappers around many of the
functions in the <a href="gl.html" class="RktModLink" data-pltdoc="x"><span class="RktSym">sgl/gl</span></a> library to present a more
Racket-friendly interface, including function names that follow Racket
conventions, and checked, symbolic enumeration arguments, and
array-length checks.</p><p><span style="font-weight: bold">Warning on Safety:</span> OpenGL programming is inherently unsafe,
even when using only the <a href="main.html" class="RktModLink" data-pltdoc="x"><span class="RktSym">sgl</span></a> library. Although
<a href="main.html" class="RktModLink" data-pltdoc="x"><span class="RktSym">sgl</span></a> checks the arguments to each function call,
violation of higher-level assumptions of the system’s OpenGL library
can cause it to crash, bringing the entire Racket system down. For
example, sending a large number of vertices in a single <span class="stt">glBegin</span>
causes at least some GL implementations to crash.</p><p>Some examples are available in the <span class="stt">"examples"</span> directory of
the <span class="stt">"sgl"</span> collection in the Racket installation. For
<span class="stt">"alpha.rkt"</span>, try choosing the <span class="stt">"sk.jpg"</span> image distritbuted
with Racket in the <span class="stt">"icons"</span> collection; you may have to
press the <span class="stt">t</span> key a few times if the spinning cube is blank.</p><div class="navsetbottom"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, "6.1", "../");" onfocus="this.style.color="black"; this.style.textAlign="left"; if (this.value == "...search manuals...") this.value="";" onblur="if (this.value.match(/^ *$/)) { this.style.color="#888"; this.style.textAlign="center"; this.value="...search manuals..."; }"/></form> <a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot("6.1");">top</a></span><span class="navright"> <a href="index.html" title="backward to "GL: 3-D Graphics"" data-pltdoc="x">← prev</a> <a href="index.html" title="up to "GL: 3-D Graphics"" data-pltdoc="x">up</a> <a href="gl.html" title="forward to "2 C-Style OpenGL"" data-pltdoc="x">next →</a></span> </div></div></div><div id="contextindicator"> </div></body></html>
|