]> git.xonotic.org Git - xonotic/darkplaces.git/blob - screen.h
Merge branch 'master' into Mario/wrath-darkplaces_extra
[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_SetLoadingSplash (const char *mapname);
34
35 void SCR_BeginLoadingPlaque (qbool startup);
36 void SCR_EndLoadingPlaque (void);
37
38 // invoke refresh of loading plaque (nothing else seen)
39 void SCR_UpdateLoadingScreen(qbool clear, qbool startup);
40 void SCR_UpdateLoadingScreenIfShown(void);
41
42 // pushes an item on the loading screen
43 void SCR_PushLoadingScreen (const char *msg, float len_in_parent);
44 void SCR_PopLoadingScreen (qbool redraw);
45 void SCR_ClearLoadingScreen (qbool redraw);
46
47 // returns true if the loading screen is waiting for a key press
48 qbool SCR_LoadingScreenWaiting(void);
49
50 void SCR_CaptureVideo_SoundFrame(const struct portable_samplepair_s *paintbuffer, size_t length);
51
52 extern float scr_con_current; // current height of displayed console
53
54 extern int sb_lines;
55
56 extern struct cvar_s scr_viewsize;
57 extern struct cvar_s scr_fov;
58 extern struct cvar_s cl_showfps;
59 extern struct cvar_s cl_showtime;
60 extern struct cvar_s cl_showdate;
61
62 extern struct cvar_s crosshair;
63 extern struct cvar_s crosshair_size;
64
65 extern struct cvar_s scr_conalpha;
66 extern struct cvar_s scr_conalphafactor;
67 extern struct cvar_s scr_conalpha2factor;
68 extern struct cvar_s scr_conalpha3factor;
69 extern struct cvar_s scr_conscroll_x;
70 extern struct cvar_s scr_conscroll_y;
71 extern struct cvar_s scr_conscroll2_x;
72 extern struct cvar_s scr_conscroll2_y;
73 extern struct cvar_s scr_conscroll3_x;
74 extern struct cvar_s scr_conscroll3_y;
75 extern struct cvar_s scr_conbrightness;
76 extern struct cvar_s r_letterbox;
77
78 extern struct cvar_s scr_aspectname;
79
80 extern struct cvar_s scr_refresh;
81 extern struct cvar_s scr_stipple;
82
83 extern struct cvar_s r_stereo_separation;
84 extern struct cvar_s r_stereo_angle;
85 qbool R_Stereo_Active(void);
86 extern int r_stereo_side;
87
88 typedef struct scr_touchscreenarea_s
89 {
90         const char *pic;
91         const char *text;
92         float rect[4];
93         float textheight;
94         float active;
95         float activealpha;
96         float inactivealpha;
97 }
98 scr_touchscreenarea_t;
99
100 // FIXME: should resize dynamically?
101 extern int scr_numtouchscreenareas;
102 extern scr_touchscreenarea_t scr_touchscreenareas[128];
103
104 #endif
105