You can’t do this. The approach for writing cheats like this is to wrap the openGL library. So you write your own opengl dll, pass through all the calls to the real opengl dll and intercept the few you want or at least make appropriate modifications to the graphics state as the application calls through to OpenGL.
You should write your own opengl app and try it; giving it a go with someone else’s intellectual property is illegal as it could be interpreted as a form reverse engineering.
This is not reverse engineering although this kind of approach could be used for that, but what are you going to reverse engineer? Their low level OpenGL code? It’s worthless! Go ahead and do this, nobody cares unless you steal models (already in documented formats in files) or write cheats which spoil the game (already been done). Anything else there has been explained and done better by others on these boards. Intel already sells an OpenGL developers product which goes WAY beyond anything proposed here, it measures almost everything of interest, records stats and has many rendering modes to show depth complexity, meshes by color, primitive types by color, dispatch methods etc.
[This message has been edited by dorbie (edited 02-12-2002).]