Thanks Alot! I found the new updated redbook in the source code for GHC 6.6 with tons of examples. I have finally gotten the samples to compile and run, looks like clear sailing from here.<br><br><div><span class="gmail_quote">
On 2/22/07, <b class="gmail_sendername">Sven Panne</b> <<a href="mailto:sven.panne@aedion.de">sven.panne@aedion.de</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thursday 22 February 2007 13:02, Jamin A. Ohmoto-Frederick wrote:<br>> Regarding Chris' post -<br>><br>> I ran into a lot of problems too since there are old<br>> versions of HOpenGL and corresponding examples
<br>> floating around out there with differing advice, such<br>> as at <a href="http://www.haskell.org/HOpenGL/">http://www.haskell.org/HOpenGL/</a>. I'm not sure<br>> why it hasn't been updated since it's off of the main
<br>> <a href="http://haskell.org">haskell.org</a>.<br><br>I admit being guilty here of not upating that site for a very long time. My<br>amount of time I can work on HOpenGL varies quite a bit depending on my Real<br>
Life (tm) ;-), I think it might be a good idea to move the stuff to the<br>Haskell Wiki, so it is easier to keep things up-to-date, integrate more<br>examples/tutorials/etc. I'll think about that...<br><br>> There are some sites that include a lot of Red Book
<br>> examples that should just compile and work with the<br>> method I gave (such as ghc --make Planet.hs). Anyone<br>> know a reason why some tutorials use the -package GLUT<br>> option?<br><br>The OpenGL/GLUT packages are exposed by default, so there is no need to
<br>specify them explicitly, unless you are manually compiling and linking. This<br>is explained in detail at:<br><br><a href="http://www.haskell.org/ghc/docs/latest/html/users_guide/packages.html#using-packages">http://www.haskell.org/ghc/docs/latest/html/users_guide/packages.html#using-packages
</a><br><br>So the easiest way to use all OpenGL/GLUT stuff is importing Graphics.UI.GLUT<br>and using "ghc --make". A single import, no special options...<br><br>> Try some of these links:<br>><br>> This should have the newer examples (can anyone tell
<br>> me if there are any better sites than this?)<br>> <a href="http://cvs.haskell.org/cgi-bin/cvsweb.cgi/~checkout~/fptools/libraries/GLUT">http://cvs.haskell.org/cgi-bin/cvsweb.cgi/~checkout~/fptools/libraries/GLUT
</a><br>>/examples/RedBook/ [...]<br><br>The OpenGL/GLUT packages are now under darcs control instead of CVS, so the<br>latest and greatest examples are available at:<br><br> <a href="http://darcs.haskell.org/packages/GLUT/examples/">
http://darcs.haskell.org/packages/GLUT/examples/</a><br><br>If you use Hugs, it may already ship with all the examples, e.g. at:<br><br> /usr/lib/hugs/demos/GLUT<br><br>Cheers,<br> S.<br>_______________________________________________
<br>HOpenGL mailing list<br><a href="mailto:HOpenGL@haskell.org">HOpenGL@haskell.org</a><br><a href="http://www.haskell.org/mailman/listinfo/hopengl">http://www.haskell.org/mailman/listinfo/hopengl</a><br></blockquote></div>
<br><br clear="all"><br>-- <br>Without Wax,<br> Chris