]> icculus.org git repositories - btb/d2x.git/blob - include/console.h
move cvar to its own module
[btb/d2x.git] / include / console.h
1 /* Console */
2
3 #ifndef _CONSOLE_H_
4 #define _CONSOLE_H_ 1
5
6 #include "cmd.h"
7 #include "cvar.h"
8
9 /* Priority levels */
10 #define CON_CRITICAL -2
11 #define CON_URGENT   -1
12 #define CON_NORMAL    0
13 #define CON_VERBOSE   1
14 #define CON_DEBUG     2
15
16 void con_init(void);
17 void con_init_gfx(void);
18 void con_resize(void);
19 void con_printf(int level, char *fmt, ...);
20
21 void con_show(void);
22 void con_draw(void);
23 void con_update(void);
24 int  con_events(int key);
25
26 extern int Console_open;
27
28 /* Console CVars */
29 /* How discriminating we are about which messages are displayed */
30 extern cvar_t con_threshold;
31
32
33 #endif /* _CONSOLE_H_ */