I am looking for a source code that simply implements a passthrough for OpenGL functions.
I need this so I can run statistics on how many times the function is called, so I can alter parameters on the fly, etc…
Does anyone have any idea where I could find this ready-to-go source code skeleton ?
I know that something like that DOES exist. I even played around with it. The pass-through included a VC++ project file with all the code and the new opengl32.dll that called the REAL opengl32.dll. Unfortunately I don’t have the files anymore (hard drive crashed). I tried searching on the net but had no luck. I don’t remember the name of the project, but there is someone who used the pass-through to create a “cheat” for the Half-Life mod Counter-Strike. You can try to contact the author and ask him where he got the pass-through. His site is www.angelfire.com/extreme/lith
Hope that helps.