icculus quake2 doxygen
1.0 dev
console.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 1997-2001 Id Software, Inc.
3
4
This program is free software; you can redistribute it and/or
5
modify it under the terms of the GNU General Public License
6
as published by the Free Software Foundation; either version 2
7
of the License, or (at your option) any later version.
8
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
13
See the GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software
17
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19
*/
20
21
//
22
// console
23
//
24
25
#define NUM_CON_TIMES 4
26
27
#define CON_TEXTSIZE 32768
28
typedef
struct
29
{
30
qboolean
initialized
;
31
32
char
text[
CON_TEXTSIZE
];
33
int
current
;
// line where next message will be printed
34
int
x
;
// offset in current line for next print
35
int
display
;
// bottom of console displays this line
36
37
int
ormask
;
// high bit mask for colored characters
38
39
int
linewidth
;
// characters across screen
40
int
totallines
;
// total lines in console scrollback
41
42
float
cursorspeed
;
43
44
int
vislines
;
45
46
float
times[
NUM_CON_TIMES
];
// cls.realtime time the line was generated
47
// for transparent notify lines
48
}
console_t
;
49
50
extern
console_t
con
;
51
52
void
Con_DrawCharacter
(
int
cx,
int
line,
int
num);
53
54
void
Con_CheckResize
(
void
);
55
void
Con_Init
(
void
);
56
void
Con_DrawConsole
(
float
frac);
57
void
Con_Print
(
char
*txt);
58
void
Con_CenteredPrint
(
char
*text);
59
void
Con_Clear_f
(
void
);
60
void
Con_DrawNotify
(
void
);
61
void
Con_ClearNotify
(
void
);
62
void
Con_ToggleConsole_f
(
void
);
Con_DrawCharacter
void Con_DrawCharacter(int cx, int line, int num)
Con_CenteredPrint
void Con_CenteredPrint(char *text)
Definition:
console.c:435
qboolean
qboolean
Definition:
q_shared.h:56
Con_DrawNotify
void Con_DrawNotify(void)
Definition:
console.c:512
con
console_t con
Definition:
console.c:24
Con_Clear_f
void Con_Clear_f(void)
Definition:
console.c:138
console_t::vislines
int vislines
Definition:
console.h:44
Con_CheckResize
void Con_CheckResize(void)
Definition:
console.c:253
console_t::linewidth
int linewidth
Definition:
console.h:39
console_t::current
int current
Definition:
console.h:33
CON_TEXTSIZE
#define CON_TEXTSIZE
Definition:
console.h:27
Con_DrawConsole
void Con_DrawConsole(float frac)
Definition:
console.c:593
console_t::totallines
int totallines
Definition:
console.h:40
console_t
Definition:
console.h:28
console_t::x
int x
Definition:
console.h:34
Con_Print
void Con_Print(char *txt)
Definition:
console.c:359
NUM_CON_TIMES
#define NUM_CON_TIMES
Definition:
console.h:25
Con_ClearNotify
void Con_ClearNotify(void)
Definition:
console.c:215
Con_ToggleConsole_f
void Con_ToggleConsole_f(void)
Definition:
console.c:75
console_t::display
int display
Definition:
console.h:35
console_t::ormask
int ormask
Definition:
console.h:37
Con_Init
void Con_Init(void)
Definition:
console.c:312
console_t::initialized
qboolean initialized
Definition:
console.h:30
console_t::cursorspeed
float cursorspeed
Definition:
console.h:42
src
client
console.h
Generated by
1.8.17