UFO: Alien Invasion
Loading...
Searching...
No Matches
cl_console.h
Go to the documentation of this file.
1
5
6/*
7All original material Copyright (C) 2002-2025 UFO: Alien Invasion.
8
9Original file from Quake 2 v3.21: quake2-2.31/client/console.h
10Copyright (C) 1997-2001 Id Software, Inc.
11
12This program is free software; you can redistribute it and/or
13modify it under the terms of the GNU General Public License
14as published by the Free Software Foundation; either version 2
15of the License, or (at your option) any later version.
16
17This program is distributed in the hope that it will be useful,
18but WITHOUT ANY WARRANTY; without even the implied warranty of
19MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20
21See the GNU General Public License for more details.
22
23You should have received a copy of the GNU General Public License
24along with this program; if not, write to the Free Software
25Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26
27*/
28
29#pragma once
30
31void Con_DrawString(const char* text, int x, int y, unsigned int width);
32void Con_Scroll(int scroll);
33void Con_CheckResize(void);
34void Con_Init(void);
35void Con_DrawConsole(float frac);
36void Con_Print(const char* txt);
37void Con_ToggleConsole_f(void);
38void Con_Close(void);
39
40void Con_SaveConsoleHistory(void);
41void Con_LoadConsoleHistory(void);
42
43#define CONSOLE_PROMPT_CHAR ']'
44
45extern const int con_fontHeight;
46extern const int con_fontWidth;
47extern const int con_fontShift;
const int con_fontShift
const int con_fontWidth
const int con_fontHeight
void Con_Init(void)
void Con_DrawString(const char *text, int x, int y, unsigned int width)
void Con_LoadConsoleHistory(void)
Load the console history.
void Con_SaveConsoleHistory(void)
Stores the console history.
void Con_Print(const char *txt)
Handles cursor positioning, line wrapping, etc All console printing must go through this in order to ...
void Con_Close(void)
Hide the gameconsole if active.
void Con_DrawConsole(float frac)
Draws the console with the solid background.
void Con_Scroll(int scroll)
Scrolls the console.
void Con_ToggleConsole_f(void)
void Con_CheckResize(void)
If the line width has changed, reformat the buffer.