2010-05-20 02:55:02 +02:00
|
|
|
/* Copyright (C) 2010 Wildfire Games.
|
2009-04-18 19:00:33 +02:00
|
|
|
* This file is part of 0 A.D.
|
|
|
|
*
|
|
|
|
* 0 A.D. 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.
|
|
|
|
*
|
|
|
|
* 0 A.D. 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 0 A.D. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2010-02-18 00:21:49 +01:00
|
|
|
#ifndef INCLUDED_PS_GAMESETUP_CONFIG
|
|
|
|
#define INCLUDED_PS_GAMESETUP_CONFIG
|
|
|
|
|
2006-06-02 04:10:27 +02:00
|
|
|
#include "ps/CStr.h"
|
2006-04-24 01:14:18 +02:00
|
|
|
|
2007-09-02 23:44:56 +02:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// prevent various OpenGL features from being used. this allows working
|
|
|
|
// around issues like buggy drivers.
|
|
|
|
|
|
|
|
// when loading S3TC-compressed texture files, do not pass them directly to
|
|
|
|
// OpenGL; instead, decompress them via software to regular textures.
|
|
|
|
// (necessary on JW's S3 laptop graphics card -- oh, the irony)
|
|
|
|
extern bool g_NoGLS3TC;
|
|
|
|
|
|
|
|
// do not ask OpenGL to create mipmaps; instead, generate them in software
|
|
|
|
// and upload them all manually. (potentially helpful for PT's system, where
|
|
|
|
// Mesa falsely reports full S3TC support but isn't able to generate mipmaps
|
|
|
|
// for them)
|
|
|
|
extern bool g_NoGLAutoMipmap;
|
|
|
|
|
|
|
|
// don't use VBOs. (RC: that was necessary on laptop Radeon cards)
|
2006-04-24 01:14:18 +02:00
|
|
|
extern bool g_NoGLVBO;
|
2007-09-02 23:44:56 +02:00
|
|
|
|
2006-04-24 01:14:18 +02:00
|
|
|
// disable FBO extension in case the driver is flaky
|
|
|
|
extern bool g_NoGLFramebufferObject;
|
2007-09-02 23:44:56 +02:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2006-04-24 01:14:18 +02:00
|
|
|
// flag to switch on shadows
|
|
|
|
extern bool g_Shadows;
|
2006-05-17 05:53:54 +02:00
|
|
|
// flag to switch on reflective/refractive water
|
|
|
|
extern bool g_FancyWater;
|
2007-09-02 23:44:56 +02:00
|
|
|
|
2006-04-24 01:14:18 +02:00
|
|
|
extern float g_LodBias;
|
|
|
|
extern float g_Gamma;
|
|
|
|
extern bool g_EntGraph;
|
|
|
|
// name of configured render path (depending on OpenGL extensions, this may not be
|
|
|
|
// the render path that is actually in use right now)
|
|
|
|
extern CStr g_RenderPath;
|
|
|
|
|
|
|
|
extern int g_xres, g_yres;
|
2007-09-02 23:44:56 +02:00
|
|
|
extern bool g_VSync;
|
|
|
|
|
2006-04-24 01:14:18 +02:00
|
|
|
extern bool g_Quickstart;
|
2010-06-05 02:49:14 +02:00
|
|
|
extern bool g_DisableAudio;
|
2007-09-02 23:44:56 +02:00
|
|
|
|
2009-11-03 22:46:35 +01:00
|
|
|
extern CStrW g_CursorName;
|
2006-04-24 01:14:18 +02:00
|
|
|
|
2006-12-09 15:39:52 +01:00
|
|
|
class CmdLineArgs;
|
|
|
|
extern void CONFIG_Init(const CmdLineArgs& args);
|
2007-10-09 09:27:45 +02:00
|
|
|
|
2010-02-18 00:21:49 +01:00
|
|
|
#endif // INCLUDED_PS_GAMESETUP_CONFIG
|