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.
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
|