[ooc-compiler] New OpenGL bindings available
Brought to you by:
mva
|
From: Stewart G. <sgr...@ii...> - 2005-01-24 04:04:16
|
Hi Folks, Still a work in progress... Here are some new bindings for OpenGL. http://maple.murdoch.edu.au/~stewart/files/OpenGL-20050124.tar.gz These are generated from the headers under Mac OSX (I think, version 1.2.1 of OpenGL). Included are Gl.Mod, Glu.Mod, and Glut.Mod. Also there are a couple of test programs adapted from the OpenGL "Red Book". "Test.Mod" draws a white square on a black background. "Test2.Mod" draws the "teapot" from the Glut library: click with the left mouse button to start rotation, right button to stop. Importantly, this shows that Oberon-2 procedures work fine as Glut callbacks. Under OSX, you can just do: oo2c -r . --make Test2 bin/Test2 in the extracted directory. For other operating systems, you will have to adapt the LINK directives in the interface files. Also there (under "misc"), is the original source used by the translator to generate the output modules. Unfortunately there's no documentation yet for this tool but if you're interested this will give you an idea how it works. Feedback is welcome, although I can't necessarily help with any problems at the moment. Cheers, Stewart |