Re: [ooc-compiler] New OpenGL bindings available
Brought to you by:
mva
|
From: Frank C. <fj...@wo...> - 2005-02-06 13:42:03
|
On Mon, Jan 24, 2005 at 12:10:13PM +0800, Stewart Greenhill wrote: > Here are some new bindings for OpenGL. [...] > Under OSX, you can just do: > oo2c -r . --make Test2 > bin/Test2 This worked under Debian GNU/Linux (testing), after... > in the extracted directory. For other operating systems, you will have > to adapt the LINK directives in the interface files. Gl.Mod: MODULE Gl [ INTERFACE "C"; LINK LIB "GL" END ]; Glu.Mod: MODULE Glu [ INTERFACE "C"; LINK LIB "GLU" END ]; Glut.Mod: MODULE Glut [ INTERFACE "C"; LINK LIB "glut" END ]; > 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. I'd be interested to have the source code for the translator. The most recent version of H2O I can find is h2o-20020204.tar.gz, which I gather is not the version used to generate these interfaces. > Feedback is welcome, although I can't necessarily help with any > problems at the moment. Running bin/Test2 consumed 100% of CPU to rotate a simple wireframe object. This was a bit surprising on an Athlon 1700+ but I gather this is a "feature" of the freeglut implementation of libglut. Frank Copeland -- A man is not complete until he is married -- then he is finished. |