Re: [Plib-devel] GL_COLOR_MATERIAL pitfall
Brought to you by:
sjbaker
From: Curtis L. O. <cu...@me...> - 2000-04-28 16:55:45
|
Wolfram Kuss writes: > BTW, regarding the GL_COLOUR_MATERIAL problem: > Steve said some time ago that the next thing to do would be to write > a program that has the same problem as PLIB/PPE, but is as simple as > possible. > > I think I read a long time ago about people "logging" OpenGL > calls with some tool and think the easiest way would be to log > them and throw out everything unneeded. > > However, I neither found a "generic OpenGL command recorder" > nor a "Windows-dll-function-call-logger".Does anyone know of such a > beast? > > If not, I could rename opengl.dll and write a new dll, that simply > calls the old one and logs all calls. A while back Steve sent me something he had whipped up which he called "xgl". Basically you include xgl.h instead of gl.h and prepend an "x" in front of all your opengl calls. He then had things structured with #defines so these could be translated straight to the real opengl calls, or you could dump a log of the calls to console or file. A modified version of this is part of the SimGear package: ftp://ftp.flightgear.org/pub/fgfs/Source/ Regards, Curt. -- Curtis Olson Human Factors Research Lab Flight Gear Project Twin Cities cu...@hf... cu...@fl... Minnesota http://www.menet.umn.edu/~curt http://www.flightgear.org |