1 /* Console, based on an old version of SDL_Console */
8 \section intro Introduction
9 SDL_Console is a console that can be added to any SDL application. It is similar to Quake and other games consoles.
10 A console is meant to be a very simple way of interacting with a program and executing commands. You can also have
11 more than one console at a time.
13 \section docs Documentation
14 For a detailed description of all functions see \ref CON_console.h. Remark that functions that have the mark "Internal"
15 are only used internally. There's not much use of calling these functions.
19 \author Garett Banuk <mongoose@mongeese.org> (Original Version)
20 \author Clemens Wacha <reflex-2000@gmx.net> (Version 2.x, Documentation)
21 \author Boris Lesner <talanthyr@tuxfamily.org> (Package Maintainer)
22 \author Bradley Bell <btb@icculus.org> (Descent Version)
30 CON_CLOSED, //! The console is closed (and not shown)
31 CON_CLOSING, //! The console is still open and visible but closing
32 CON_OPENING, //! The console is visible and opening but not yet fully open
33 CON_OPEN //! The console is open and visible
36 /*! Takes keys from the keyboard and inputs them to the console if the console isVisible().
37 If the event was not handled (i.e. WM events or unknown ctrl- or alt-sequences)
38 the function returns the event for further processing. */
39 int CON_Events(int event);
40 /*! Makes the console visible */
42 /*! Hides the console */
44 /*! Returns 1 if the console is visible, 0 else */
45 int CON_isVisible(void);
46 /*! Draws the console to the screen if it isVisible()*/
47 void CON_DrawConsole(void);
48 /*! Initializes the console */
50 /*! Initializes the graphical console */
51 void CON_InitGFX(int w, int h);
52 /*! printf for the console */
53 void CON_Out(const char *str, ...);
54 /*! Changes the size of the console */
55 void CON_Resize(int w, int h);
59 #define CON_CRITICAL -2
65 void con_printf(int level, char *fmt, ...);
68 /* How discriminating we are about which messages are displayed */
69 extern cvar_t con_threshold;
72 #endif /* _CONSOLE_H_ */