Updated: 11/5/2005; 6:04:15 PM.
Chris Double's Radio Weblog
        

Saturday, May 17, 2003

I've done a simple wrapper around OpenGL for Chicken Scheme. I don't use GLUT for this, instead using X and GLX to create my own windows. This allows me to interact with the Scheme system easily.

You can open multiple windows with the event loop in a seperate thread, program interactively at the read-eval-print loop and immediately see your changes in the OpenGL windows. I use a select call to block on X events which helps cut down the CPU overhead if there are no X events waiting.

You'll need the following:

  • Chicken Scheme (1.9 or greater)
  • SWIG 1.3.19 with Chicken Patch (It works without the patch but there is the occasional hang due to a bug in the Chicken Scheme SWIG code).

I've converted a few of the NeHe OpenGL Tutorials as examples. Download version 0.1 of the library here (file no longer available).

I developed and tested this on Linux so I'm not sure how well it'll work on any other platform.


1:10:38 AM      

© Copyright 2005 Chris Double.
 
May 2003
Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Apr   Jun


Smalltalk with Rants
Pitcairn News

Click here to visit the Radio UserLand website.

Click to see the XML version of this web page.