emacs.d/clones/lisp/www.cliki.net/cl-opengl.html
2022-10-07 15:47:14 +02:00

51 lines
No EOL
4.4 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>CLiki: cl-opengl</title>
<link rel="alternate" type="application/atom+xml" title="ATOM feed of edits to current article"
href="https://www.cliki.net/site/feed/article.atom?title=cl-opengl">
<link rel="stylesheet" href="static/css/style.css">
<link rel="stylesheet" href="static/css/colorize.css">
</head>
<body>
<span class="hidden">CLiki - cl-opengl</span>
<div id="content"><div id="content-area"><div id="article-title">cl-opengl</div><div id="article">cl-opengl is a set of <a href="CFFI.html" class="internal">CFFI</a> bindings to the <a href="OpenGL.html" class="category">OpenGL</a>, GLU and GLUT. <p>See its <a href="http://common-lisp.net/project/cl-opengl/">project page</a> at common-lisp.net.<p><hr><p>I had some problems on this install on SBCL under OS X: After some searching, I am of the opinion that OS X does not come with a version of GLUT. Further, installing GLUT from MacPorts installs GLUT, not OpenGLUT, which is actually the version that these bindings talk to. So I had to manually download, build and install OpenGLUT, which was an uneventful success, then create symlinks of the proper GLUT names (libglut.dylib and libglut.a) to the corresponding OpenGLUT libraries so the proper files can be found by name. I hope this helps. --<a href="Zach&#32;Smith.html" class="internal">Zach Smith</a><p>Mac OS X does come with GLUT, but it's a framework not a library. I don't know what changes you'd need to make for cl-opengl, but for a C program, it's a matter of #include'ing instead of the standard , and linking with -framework GLUT -framework OpenGL instead of the standard -lGL -lGLU -lglut. -- <a href="Keith&#32;Bauer.html" class="internal">Keith Bauer</a><p>There's a version of cl-opengl that works on osx here: http://www.esden.net/content/lisp/cl-mac-native-opengl-thomas-0.1.tar.bz2<p>Current cl-opengl/cl-glut should work on osx, with the limitation that GL/glut code (possibly including loading the libraries) can only be run from the first thread.<p>cl-opengl on github: <a href="http://github.com/3b/cl-opengl">http://github.com/3b/cl-opengl</a><p><hr><p><a href="lispbuilder-sdl.html" class="internal">lispbuilder-sdl</a> is an alternative to the glut binding for some purposes (i.e. games).</div></div>
<div id="footer" class="buttonbar"><ul><li><a href="cl-opengl.html">Current version</a></li>
<li><a href="https://www.cliki.net/site/history?article=cl-opengl">History</a></li>
<li><a href="https://www.cliki.net/site/backlinks?article=cl-opengl">Backlinks</a></li><li><a href="https://www.cliki.net/site/edit-article?title=cl-opengl&amp;from-revision=3686400988">Edit</a></li><li><a href="https://www.cliki.net/site/edit-article?create=t">Create</a></li></ul></div>
</div>
<div id="header-buttons" class="buttonbar">
<ul>
<li><a href="https://www.cliki.net/">Home</a></li>
<li><a href="https://www.cliki.net/site/recent-changes">Recent Changes</a></li>
<li><a href="CLiki.html">About</a></li>
<li><a href="Text&#32;Formatting.html">Text Formatting</a></li>
<li><a href="https://www.cliki.net/site/tools">Tools</a></li>
</ul>
<div id="search">
<form action="https://www.cliki.net/site/search">
<label for="search_query" class="hidden">Search CLiki</label>
<input type="text" name="query" id="search_query" value="" />
<input type="submit" value="search" />
</form>
</div>
</div>
<div id="pageheader">
<div id="header">
<span id="logo">CLiki</span>
<span id="slogan">the common lisp wiki</span>
<div id="login"><form method="post" action="https://www.cliki.net/site/login">
<label for="login_name" class="hidden">Account name</label>
<input type="text" name="name" id="login_name" class="login_input" />
<label for= "login_password" class="hidden">Password</label>
<input type="password" name="password" id="login_password" class="login_input" />
<input type="submit" name="login" value="login" id="login_submit" /><br />
<div id="register"><a href="https://www.cliki.net/site/register">register</a></div>
<input type="submit" name="reset-pw" value="reset password" id="reset_pw" />
</form>
</div>
</div>
</div>
</body></html>