]> git.xonotic.org Git - xonotic/darkplaces.git/blob - screen.h
Fix an IO exception on exit when using -condebug because FS_Close was trying to log...
[xonotic/darkplaces.git] / screen.h
1 /*
2 Copyright (C) 1996-1997 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 // screen.h
21
22 #ifndef SCREEN_H
23 #define SCREEN_H
24
25 #include <stddef.h>
26 #include "qtypes.h"
27 struct portable_samplepair_s;
28
29 void CL_Screen_Init (void);
30 void CL_UpdateScreen (void);
31 void SCR_CenterPrint(const char *str);
32
33 void SCR_BeginLoadingPlaque (qbool startup);
34 void SCR_EndLoadingPlaque (void);
35
36 // invoke refresh of loading plaque (nothing else seen)
37 void SCR_UpdateLoadingScreen(qbool clear, qbool startup);
38 void SCR_UpdateLoadingScreenIfShown(void);
39
40 // pushes an item on the loading screen
41 void SCR_PushLoadingScreen (const char *msg, float len_in_parent);
42 void SCR_PopLoadingScreen (qbool redraw);
43 void SCR_ClearLoadingScreen (qbool redraw);
44
45 void SCR_CaptureVideo_SoundFrame(const struct portable_samplepair_s *paintbuffer, size_t length);
46
47 extern float scr_con_current; // current height of displayed console
48
49 extern int sb_lines;
50
51 extern struct cvar_s scr_viewsize;
52 extern struct cvar_s scr_fov;
53 extern struct cvar_s cl_showfps;
54 extern struct cvar_s cl_showtime;
55 extern struct cvar_s cl_showdate;
56
57 extern struct cvar_s crosshair;
58 extern struct cvar_s crosshair_size;
59
60 extern struct cvar_s scr_conalpha;
61 extern struct cvar_s scr_conalphafactor;
62 extern struct cvar_s scr_conalpha2factor;
63 extern struct cvar_s scr_conalpha3factor;
64 extern struct cvar_s scr_conscroll_x;
65 extern struct cvar_s scr_conscroll_y;
66 extern struct cvar_s scr_conscroll2_x;
67 extern struct cvar_s scr_conscroll2_y;
68 extern struct cvar_s scr_conscroll3_x;
69 extern struct cvar_s scr_conscroll3_y;
70 extern struct cvar_s scr_conbrightness;
71 extern struct cvar_s r_letterbox;
72
73 extern struct cvar_s scr_refresh;
74 extern struct cvar_s scr_stipple;
75
76 extern struct cvar_s r_stereo_separation;
77 extern struct cvar_s r_stereo_angle;
78 qbool R_Stereo_Active(void);
79 extern int r_stereo_side;
80
81 typedef struct scr_touchscreenarea_s
82 {
83         const char *pic;
84         const char *text;
85         float rect[4];
86         float textheight;
87         float active;
88         float activealpha;
89         float inactivealpha;
90 }
91 scr_touchscreenarea_t;
92
93 // FIXME: should resize dynamically?
94 extern int scr_numtouchscreenareas;
95 extern scr_touchscreenarea_t scr_touchscreenareas[128];
96
97 #endif
98