Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Debugging in Marching Cubes

Debugging in the marching cubes engine works by including the file debug.h into the files where debug output is needed. Befor including the file the macro DEBUG_MODE should be defined to the desired debug level. The debug macros such as DEBUG0 or DEBUG1 have the level in their name and will be executed if the actual debug level is smaller or equal to the level of the macro. The macros are designed to introduce no extra code if they are disabled. There exists a spezial debug macros called TODO. It will be executed as long as the debug level is samller or equal than 99. Taking this aspect into account the debug level of 99 is very special because is disables all nurmal debug output but does not deisable the TODO output. Every debug macro prints it's output to stderr.

Debugging OpenGL

I have included marginal support for debugging OpenGL function calls. It is realised by redefining the OpenGL funcions such that first the signature is printed to stderr and then the function itself is called. This has two big implication:

Todo:
Remove all macros for functions that return pointers or can be identified as functions with important return values.

Generated on Wed Dec 15 21:22:08 2004 for vuVolume by  doxygen 1.3.9.1