/* Console */ #ifndef _CONSOLE_H_ #define _CONSOLE_H_ 1 /* Priority levels */ #define CON_CRITICAL -2 #define CON_URGENT -1 #define CON_NORMAL 0 #define CON_VERBOSE 1 #define CON_DEBUG 2 int con_init(void); void con_printf(int level, char *fmt, ...); void con_draw(void); void con_update(void); /* CVar stuff */ typedef struct cvar_s { char *name; char *string; dboolean archive; float value; struct cvar_s *next; } cvar_t; extern cvar_t *cvar_vars; /* Register a CVar with the name and string and optionally archive elements set */ void cvar_registervariable (cvar_t *cvar); /* Equivalent to typing at the console */ void cvar_set(char *cvar_name, char *value); /* Get a CVar's value */ float cvar(char *cvar_name); /* Console CVars */ /* How discriminating we are about which messages are displayed */ cvar_t con_threshold; #endif /* _CONSOLE_H_ */