Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Config.h
Go to the documentation of this file.
1 /* Copyright (C) 2012 Wildfire Games.
2  * This file is part of 0 A.D.
3  *
4  * 0 A.D. is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * 0 A.D. 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. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef INCLUDED_PS_GAMESETUP_CONFIG
19 #define INCLUDED_PS_GAMESETUP_CONFIG
20 
21 #include "ps/CStr.h"
22 
23 
24 //-----------------------------------------------------------------------------
25 // prevent various OpenGL features from being used. this allows working
26 // around issues like buggy drivers.
27 
28 // when loading S3TC-compressed texture files, do not pass them directly to
29 // OpenGL; instead, decompress them via software to regular textures.
30 // (necessary on JW's S3 laptop graphics card -- oh, the irony)
31 extern bool g_NoGLS3TC;
32 
33 // do not ask OpenGL to create mipmaps; instead, generate them in software
34 // and upload them all manually. (potentially helpful for PT's system, where
35 // Mesa falsely reports full S3TC support but isn't able to generate mipmaps
36 // for them)
37 extern bool g_NoGLAutoMipmap;
38 
39 // don't use VBOs. (RC: that was necessary on laptop Radeon cards)
40 extern bool g_NoGLVBO;
41 
42 //-----------------------------------------------------------------------------
43 
44 // flag to pause the game on window focus loss
45 extern bool g_PauseOnFocusLoss;
46 
47 // flag to switch on shadows
48 extern bool g_Shadows;
49 
50 // Use real normals for ocean-wave rendering, instead of applying them as a flat texture.
51 extern bool g_WaterNormal;
52 // Use real depth for water rendering.
53 extern bool g_WaterRealDepth;
54 // Show foam near the shores depending on waviness.
55 extern bool g_WaterFoam;
56 // Show coastal breaking waves.
57 extern bool g_WaterCoastalWaves;
58 // Use a real refraction map and not transparency.
59 extern bool g_WaterRefraction;
60 // Use a real reflection map and not a skybox texture.
61 extern bool g_WaterReflection;
62 // Enable on-water shadows.
63 extern bool g_WaterShadows;
64 
65 // flag to switch on shadow PCF
66 extern bool g_ShadowPCF;
67 // flag to switch on particles rendering
68 extern bool g_Particles;
69 // flag to switch on unit silhouettes
70 extern bool g_Silhouettes;
71 // flag to switch on sky rendering
72 extern bool g_ShowSky;
73 
74 extern float g_Gamma;
75 // name of configured render path (depending on OpenGL extensions, this may not be
76 // the render path that is actually in use right now)
77 extern CStr g_RenderPath;
78 
79 extern int g_xres, g_yres;
80 extern bool g_VSync;
81 
82 extern bool g_Quickstart;
83 extern bool g_DisableAudio;
84 
85 extern bool g_JSDebuggerEnabled;
86 extern bool g_ScriptProfilingEnabled;
87 
88 extern CStrW g_CursorName;
89 
90 class CmdLineArgs;
91 extern void CONFIG_Init(const CmdLineArgs& args);
92 
93 #endif // INCLUDED_PS_GAMESETUP_CONFIG
bool g_Silhouettes
Definition: Config.cpp:51
CStrW g_CursorName
Definition: Config.cpp:31
int g_xres
Definition: Config.cpp:58
bool g_JSDebuggerEnabled
Definition: Config.cpp:64
bool g_WaterRefraction
Definition: Config.cpp:46
bool g_WaterShadows
Definition: Config.cpp:48
bool g_ScriptProfilingEnabled
Definition: Config.cpp:65
bool g_Particles
Definition: Config.cpp:50
void CONFIG_Init(const CmdLineArgs &args)
Definition: Config.cpp:209
CStr g_RenderPath
Definition: Config.cpp:56
bool g_WaterRealDepth
Definition: Config.cpp:43
int g_yres
Definition: Config.cpp:58
bool g_Quickstart
Definition: Config.cpp:61
bool g_WaterFoam
Definition: Config.cpp:44
bool g_VSync
Definition: Config.cpp:59
bool g_ShowSky
Definition: Config.cpp:52
bool g_WaterReflection
Definition: Config.cpp:47
bool g_PauseOnFocusLoss
Definition: Config.cpp:37
bool g_WaterNormal
Definition: Config.cpp:42
bool g_NoGLVBO
Definition: Config.cpp:35
bool g_ShadowPCF
Definition: Config.cpp:40
bool g_Shadows
Definition: Config.cpp:39
bool g_NoGLS3TC
Definition: Config.cpp:33
bool g_DisableAudio
Definition: Config.cpp:62
bool g_NoGLAutoMipmap
Definition: Config.cpp:34
bool g_WaterCoastalWaves
Definition: Config.cpp:45
float g_Gamma
Definition: Config.cpp:54