Pyrogenesis
trunk
|
#include "precompiled.h"
#include "scriptinterface/ScriptInterface.h"
#include "lib/ogl.h"
#include "lib/svn_revision.h"
#include "lib/timer.h"
#include "lib/utf8.h"
#include "lib/external_libraries/libsdl.h"
#include "lib/res/graphics/ogl_tex.h"
#include "lib/posix/posix_utsname.h"
#include "lib/sysdep/cpu.h"
#include "lib/sysdep/gfx.h"
#include "lib/sysdep/numa.h"
#include "lib/sysdep/os_cpu.h"
#include "lib/sysdep/snd.h"
#include "ps/CLogger.h"
#include "ps/ConfigDB.h"
#include "ps/Filesystem.h"
#include "ps/Profile.h"
#include "ps/UserReport.h"
#include "ps/VideoMode.h"
#include "ps/GameSetup/Config.h"
Macros | |
#define | INTEGER(id) |
#define | INTEGER2(id) |
#define | FLOAT(id) |
#define | FLOAT2(id) |
#define | STRING(id) |
#define | QUERY(target, pname) |
#define | VERTEXPROGRAM(id) |
#define | FRAGMENTPROGRAM(id) |
#define | BOOL(id) INTEGER(id) |
Functions | |
static void | ReportGLLimits (ScriptInterface &scriptInterface, JS::HandleValue settings) |
static bool | IsOverridden (const char *setting) |
void | SetDisableAudio (ScriptInterface::CxPrivate *pCxPrivate, bool disabled) |
void | SetDisableS3TC (ScriptInterface::CxPrivate *pCxPrivate, bool disabled) |
void | SetDisableShadows (ScriptInterface::CxPrivate *pCxPrivate, bool disabled) |
void | SetDisableShadowPCF (ScriptInterface::CxPrivate *pCxPrivate, bool disabled) |
void | SetDisableAllWater (ScriptInterface::CxPrivate *pCxPrivate, bool disabled) |
void | SetDisableFancyWater (ScriptInterface::CxPrivate *pCxPrivate, bool disabled) |
void | SetEnableGLSL (ScriptInterface::CxPrivate *pCxPrivate, bool enabled) |
void | SetEnablePostProc (ScriptInterface::CxPrivate *pCxPrivate, bool enabled) |
void | SetEnableSmoothLOS (ScriptInterface::CxPrivate *pCxPrivate, bool enabled) |
void | SetRenderPath (ScriptInterface::CxPrivate *pCxPrivate, const std::string &renderpath) |
void | RunHardwareDetection () |
Runs hardware-detection script to adjust default config settings and/or emit warnings depending on the user's system configuration. More... | |
#define FLOAT | ( | id | ) |
#define FLOAT2 | ( | id | ) |
#define FRAGMENTPROGRAM | ( | id | ) |
#define INTEGER | ( | id | ) |
#define INTEGER2 | ( | id | ) |
#define QUERY | ( | target, | |
pname | |||
) |
#define STRING | ( | id | ) |
#define VERTEXPROGRAM | ( | id | ) |
|
static |
|
static |
void RunHardwareDetection | ( | ) |
Runs hardware-detection script to adjust default config settings and/or emit warnings depending on the user's system configuration.
This must only be called after ogl_Init.
void SetDisableAllWater | ( | ScriptInterface::CxPrivate * | pCxPrivate, |
bool | disabled | ||
) |
void SetDisableAudio | ( | ScriptInterface::CxPrivate * | pCxPrivate, |
bool | disabled | ||
) |
void SetDisableFancyWater | ( | ScriptInterface::CxPrivate * | pCxPrivate, |
bool | disabled | ||
) |
void SetDisableS3TC | ( | ScriptInterface::CxPrivate * | pCxPrivate, |
bool | disabled | ||
) |
void SetDisableShadowPCF | ( | ScriptInterface::CxPrivate * | pCxPrivate, |
bool | disabled | ||
) |
void SetDisableShadows | ( | ScriptInterface::CxPrivate * | pCxPrivate, |
bool | disabled | ||
) |
void SetEnableGLSL | ( | ScriptInterface::CxPrivate * | pCxPrivate, |
bool | enabled | ||
) |
void SetEnablePostProc | ( | ScriptInterface::CxPrivate * | pCxPrivate, |
bool | enabled | ||
) |
void SetEnableSmoothLOS | ( | ScriptInterface::CxPrivate * | pCxPrivate, |
bool | enabled | ||
) |
void SetRenderPath | ( | ScriptInterface::CxPrivate * | pCxPrivate, |
const std::string & | renderpath | ||
) |