This file is indexed.

/usr/share/doc/racket/sgl/overview.html is in racket-doc 6.7-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
<!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&nbsp;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,&quot;tocview_0&quot;);">&#9660;</a></td><td></td><td><a href="index.html" class="tocviewlink" data-pltdoc="x">GL:<span class="mywbr"> &nbsp;</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&nbsp;</td><td><a href="" class="tocviewselflink" data-pltdoc="x">Using Open<span class="mywbr"> &nbsp;</span>GL</a></td></tr><tr><td align="right">2&nbsp;</td><td><a href="gl.html" class="tocviewlink" data-pltdoc="x">C-<wbr></wbr>Style Open<span class="mywbr"> &nbsp;</span>GL</a></td></tr><tr><td align="right">3&nbsp;</td><td><a href="main.html" class="tocviewlink" data-pltdoc="x">Racket-<wbr></wbr>Style Open<span class="mywbr"> &nbsp;</span>GL</a></td></tr><tr><td align="right">4&nbsp;</td><td><a href="gl-vectors.html" class="tocviewlink" data-pltdoc="x">Open<span class="mywbr"> &nbsp;</span>GL Vectors</a></td></tr><tr><td align="right">5&nbsp;</td><td><a href="bitmaps.html" class="tocviewlink" data-pltdoc="x">Bitmaps</a></td></tr><tr><td align="right">6&nbsp;</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, &quot;6.7&quot;, &quot;../&quot;);" onfocus="this.style.color=&quot;black&quot;; this.style.textAlign=&quot;left&quot;; if (this.value == &quot;...search manuals...&quot;) this.value=&quot;&quot;;" onblur="if (this.value.match(/^ *$/)) { this.style.color=&quot;#888&quot;; this.style.textAlign=&quot;center&quot;; this.value=&quot;...search manuals...&quot;; }"/></form>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;6.7&quot;);">top</a></span><span class="navright">&nbsp;&nbsp;<a href="index.html" title="backward to &quot;GL: 3-D Graphics&quot;" data-pltdoc="x">&larr; prev</a>&nbsp;&nbsp;<a href="index.html" title="up to &quot;GL: 3-D Graphics&quot;" data-pltdoc="x">up</a>&nbsp;&nbsp;<a href="gl.html" title="forward to &quot;2 C-Style OpenGL&quot;" data-pltdoc="x">next &rarr;</a></span>&nbsp;</div><h3 x-source-module="(lib &quot;sgl/scribblings/sgl.scrbl&quot;)" x-source-pkg="sgl" x-part-tag="&quot;overview&quot;">1<tt>&nbsp;</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&rsquo;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, &quot;6.7&quot;, &quot;../&quot;);" onfocus="this.style.color=&quot;black&quot;; this.style.textAlign=&quot;left&quot;; if (this.value == &quot;...search manuals...&quot;) this.value=&quot;&quot;;" onblur="if (this.value.match(/^ *$/)) { this.style.color=&quot;#888&quot;; this.style.textAlign=&quot;center&quot;; this.value=&quot;...search manuals...&quot;; }"/></form>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;6.7&quot;);">top</a></span><span class="navright">&nbsp;&nbsp;<a href="index.html" title="backward to &quot;GL: 3-D Graphics&quot;" data-pltdoc="x">&larr; prev</a>&nbsp;&nbsp;<a href="index.html" title="up to &quot;GL: 3-D Graphics&quot;" data-pltdoc="x">up</a>&nbsp;&nbsp;<a href="gl.html" title="forward to &quot;2 C-Style OpenGL&quot;" data-pltdoc="x">next &rarr;</a></span>&nbsp;</div></div></div><div id="contextindicator">&nbsp;</div></body></html>