-
Notifications
You must be signed in to change notification settings - Fork 124
/
Copy pathtr_types.h
93 lines (77 loc) · 2.78 KB
/
tr_types.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*
===========================================================================
Copyright (C) 1999-2005 Id Software, Inc.
This file is part of Quake III Arena source code.
Quake III Arena source code is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
Quake III Arena source code is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Foobar; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
//
#ifndef __TR_TYPES_H
#define __TR_TYPES_H
/*
** glconfig_t
**
** Contains variables specific to the OpenGL configuration
** being run right now. These are constant once the OpenGL
** subsystem is initialized.
*/
// FIXME: Is this still relevant?
typedef enum {
GLHW_GENERIC, // where everthing works the way it should
GLHW_INTEL // Causes flickering console if you write directly to the front
// buffer and then flip the back buffer for instance when drawing
// the I/O icon or doing timerefresh.
// http://www.intel.com/cd/ids/developer/asmo-na/eng/168252.htm?page=7
} glHardwareType_t;
typedef struct {
const unsigned char *renderer_string;
const unsigned char *vendor_string;
const unsigned char *version_string;
const unsigned char *extensions_string;
int colorBits, depthBits, stencilBits;
int vidWidth, vidHeight;
int displayFrequency;
glHardwareType_t hardwareType;
qbool initialized;
} glconfig_t;
extern glconfig_t glConfig;
//
// latched variables that can only change over a restart
//
extern cvar_t r_colorbits;
extern cvar_t r_stereo;
extern cvar_t r_24bit_depth;
extern cvar_t r_fullscreen;
extern cvar_t vid_width;
extern cvar_t vid_height;
extern cvar_t vid_win_width;
extern cvar_t vid_win_height;
extern cvar_t r_win_save_pos;
extern cvar_t r_win_save_size;
extern cvar_t r_displayRefresh;
extern cvar_t vid_borderless;
extern cvar_t vid_usedesktopres;
//
// archived variables that can change at any time
//
extern cvar_t r_swapInterval;
extern cvar_t vid_xpos;
extern cvar_t vid_ypos;
extern cvar_t vid_minpos;
extern cvar_t r_conwidth;
extern cvar_t r_conheight;
extern cvar_t vid_ref;
extern cvar_t vid_flashonactivity;
extern cvar_t r_verbose;
extern cvar_t r_showextensions;
#endif // __TR_TYPES_H