Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

msg Namespace Reference


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


Enumeration Type Documentation

enum msg::MsgType
 

Enumeration values:
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  


Function Documentation

void exitFunc  
 

Can be called at end of function if setFuncName is called at begin of function.

const char* getLastFuncName  
 

Returns name of last called function/method.

int getLastGlError  
 

Returns last occurred GL error number or zero if no errors. getLastGlError returns error only once.

void glReady bool   enabled
 

Renderer should call glReady(true) when OpenGL is functional and glReady(false) befor uninit.

void msgOut enum MsgType   messagetype,
const char *   format,
...  
 

Output messages to stdout, log or screen. MSG_INTERNA and MSG_FATAL aborts execution, others just prints output.

void setDebugLevel int   level
 

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.

void setFuncName const char *   name
 

Set current function/method name to help debugging. Every func/method that does something with GL or SDL should use this.


Variable Documentation

int msg::msg_debuglevel
 

bool msg::msg_func_exit
 

bool msg::msg_gl_ready
 

int msg::msg_last_gl_error
 

const char* msg::msg_lastfunc
 

FILE* msg::msg_output
 


Generated at Fri Oct 5 20:23:53 2001 for Executor by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001