Enumerations | |
enum | MsgType { MSG_INTERNAL, MSG_FATAL, MSG_FAILURE, MSG_WARN, MSG_INIT, MSG_UNINIT, MSG_DEBUG_1, MSG_DEBUG_2, MSG_DEBUG_3, MSG_DEBUG_4, MSG_DEBUG_5, MSG_INFO, MSG_NOTE, MSG_ERROR } |
Functions | |
void | setDebugLevel (int level) |
void | msgOut (enum MsgType messagetype, const char *format,...) |
void | setFuncName (const char *name) |
void | exitFunc () |
const char * | getLastFuncName () |
int | getLastGlError () |
void | glReady (bool enabled) |
Variables | |
FILE * | msg_output |
int | msg_debuglevel |
const char * | msg_lastfunc |
int | msg_last_gl_error |
bool | msg_gl_ready |
bool | msg_func_exit |
|
|
|
Can be called at end of function if setFuncName is called at begin of function.
|
|
Returns name of last called function/method.
|
|
Returns last occurred GL error number or zero if no errors. getLastGlError returns error only once.
|
|
Renderer should call glReady(true) when OpenGL is functional and glReady(false) befor uninit.
|
|
Output messages to stdout, log or screen. MSG_INTERNA and MSG_FATAL aborts execution, others just prints output.
|
|
Level 0-5 determines how much to output debugging information, 0 disables debug output. Level 1 is for initialization and 5 for huge amounts of continuous output.
|
|
Set current function/method name to help debugging. Every func/method that does something with GL or SDL should use this.
|
|
|
|
|
|
|
|
|
|
|
|
|