dxx-rebirth/include/console.h
Bradley Bell 9bd1ba7c47 This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.
2001-01-19 03:30:16 +00:00

47 lines
900 B
C

/* 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 <var_name> <value> 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_ */