[HOpenGL] Example Program and Compiliation?

Shae Matijs Erisson shae at ScannedInAvian.com
Sat Dec 20 00:33:29 EST 2003


"Eric L. Zeltmann" <paladin at sunybsg.org> writes:

> Hi all,
>
> I recently downloaded the new version of HOpenGL (1.05) and ghc(6.0.1),
> compiled them, set them up without any problems.  
>
> Now I'm trying to strech my wings a little by doing some intial
> programs.  Unfortunately there isn't any recent tutorials, and I know
> that HOpenGL has gone through some interface name changes.  I was hoping
> that maybe somebody on the list could give me an short example program,
> or atleast how to run ghc to compile the Hello.hs program found in the
> examples/redbook_hs directory, outside of running the makefile (ie, what
> would be the command I would run to compile it, what packages etc.)
>
> I am currently working on a linux system, but if you only know windows,
> I can probably translate between the two.
>
> Thank you for your time, and if you just find this annoying, delete it.

I'm still not sure whether OpenGL or HOpenGL is the canonically correct
version, but the ghc6-hopengl debian package maintainer (Ian Lynagh) wrote this
cute demo script that works with the HOpenGL debs he created:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Cube.hs
Type: application/octet-stream
Size: 5036 bytes
Desc: 3D HOpenGL cube
Url : http://haskell.org/pipermail/hopengl/attachments/20031220/5a3145c2/Cube.obj
-------------- next part --------------
-- 
Shae Erisson 
If anyone lets loose with the secret that hearing a request doesn't force one
to obey it, sue 'em under the DMCA. After that, anyone who doesn't obey you is
obviously using a circumvention device (their brain), which you can have
confiscated by the authorities.  -- Baron_Yam on slashdot.org


More information about the HOpenGL mailing list