How to wrap GL calls?


Some students at MIT had shown it, but how.
If i understand it correct, they created an OpenGL Wrapper to change some GL Calls.

So now my question, how can this be done.

I want to catch some gl Calls to catch the values and create a floatbuffer for my specialized fragmentprogram.

Thanks for your help

What OS? If you’re talking about Windows, you could just start with the GLTrace
source code and modify the functions you want to catch.