janwas
22e4d2fd98
config: add 2 parameters to allow disabling s3tc/auto mipmap gen wpthread: add support for named semaphores (required for macosx compat) openal, ogghack: remove direct use of __APPLE__ macro (replace with OS_MACOSX) GraphicsSetupHandlers.cpp: fix incorrect usage of OS_ macros (they're always defined, so the test should be if their value is != 0) This was SVN commit r5316.
55 lines
1.7 KiB
C++
55 lines
1.7 KiB
C++
#include "ps/CStr.h"
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// 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)
|
|
extern bool g_NoGLVBO;
|
|
|
|
// disable FBO extension in case the driver is flaky
|
|
extern bool g_NoGLFramebufferObject;
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// flag to switch on shadows
|
|
extern bool g_Shadows;
|
|
// flag to switch on reflective/refractive water
|
|
extern bool g_FancyWater;
|
|
// flag to switch on fixed frame timing (RC: I'm using this for profiling purposes)
|
|
extern bool g_FixedFrameTiming;
|
|
|
|
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;
|
|
extern int g_bpp;
|
|
extern int g_freq;
|
|
extern bool g_VSync;
|
|
|
|
extern bool g_Quickstart;
|
|
|
|
// If non-empty, specified map will be automatically loaded
|
|
extern CStr g_AutostartMap;
|
|
|
|
extern CStr g_CursorName;
|
|
|
|
class CmdLineArgs;
|
|
extern void CONFIG_Init(const CmdLineArgs& args);
|