1 /*
2  * console.h -- the game console
3  * $Id: console.h,v 1.13 2009-06-22 14:00:21 sezero Exp $
4  *
5  * Copyright (C) 1996-1997  Id Software, Inc.
6  * Copyright (C) 1997-1998  Raven Software Corp.
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or (at
11  * your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  *
17  * See the GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License along
20  * with this program; if not, write to the Free Software Foundation, Inc.,
21  * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
22  */
23 
24 #ifndef __CONSOLE_H
25 #define __CONSOLE_H
26 
27 #define CON_TEXTSIZE	16384
28 typedef struct
29 {
30 	short	text[CON_TEXTSIZE];
31 	int		current;		// line where next message will be printed
32 	int		x;			// offset in current line for next print
33 	int		display;		// bottom of console displays this line
34 } console_t;
35 
36 extern	console_t	*con;
37 
38 extern	int		con_ormask;
39 
40 extern	int con_totallines;
41 extern	qboolean con_forcedup;	// because no entities to refresh
42 extern	qboolean con_initialized;
43 extern	byte *con_chars;
44 extern	int con_notifylines;	// scan lines to clear for notify lines
45 
46 void Con_DrawCharacter (int cx, int line, int num);
47 
48 void Con_CheckResize (void);
49 void Con_Init (void);
50 void Con_DrawConsole (int lines);
51 
52 void Con_ShowList (int , const char **);
53 void Con_DrawNotify (void);
54 void Con_ClearNotify (void);
55 void Con_ToggleConsole_f (void);
56 
57 void Con_NotifyBox (const char *text);	// during startup for sound / cd warnings
58 
59 #endif	/* __CONSOLE_H */
60 
61