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