Two files that you can include with your projects to debug OpenGL calls. The files simply redirect glXXX() calls to _dbglXXX() calls using macros.

#include the "gldebug.h" file in place of <GL/gl.h> and build the gldebug.c file along with your project. Make your own traces using the OGLDB_TRACE() macro anywhere in the gldebug.c file.

Download the file gldebug.tgz and extract.

A sample application is included that redirects GL calls to print out the function name that was called.

The files work with MSVC++ but should be portable to unix with minimal modifications. If someone would like to contribute by making the proper modifications for unix, I will upload it immediately.

Feel free to use them at your leisure, no copyrights or guarantees.
 

Copyright © 2004 Eric Powers.  All rights reserved.