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