RigsofRods
Soft-body Physics Simulation
Macros | Functions | Variables
AppConfig.cpp File Reference
#include "Actor.h"
#include "Application.h"
#include "Console.h"
#include "ContentManager.h"
#include "ErrorUtils.h"
#include "Language.h"
#include "PlatformUtils.h"
#include "Utils.h"
#include <Ogre.h>
#include <sstream>
+ Include dependency graph for AppConfig.cpp:

Go to the source code of this file.

Macros

#define CONFIG_FILE_NAME   "RoR.cfg"
 

Functions

IoInputGrabMode ParseIoInputGrabMode (std::string const &s)
 
GfxShadowType ParseGfxShadowType (std::string const &s)
 
GfxExtCamMode ParseGfxExtCamMode (std::string const &s)
 
GfxTexFilter ParseGfxTexFilter (std::string const &s)
 
GfxVegetation ParseGfxVegetation (std::string const &s)
 
SimGearboxMode ParseSimGearboxMode (std::string const &s)
 
GfxFlaresMode ParseGfxFlaresMode (std::string const &s)
 
GfxWaterMode ParseGfxWaterMode (std::string const &s)
 
GfxSkyMode ParseGfxSkyMode (std::string const &s)
 
const char * IoInputGrabModeToStr (IoInputGrabMode v)
 
const char * GfxShadowTypeToStr (GfxShadowType v)
 
const char * GfxExtCamModeToStr (GfxExtCamMode v)
 
const char * GfxTexFilterToStr (GfxTexFilter v)
 
const char * GfxVegetationToStr (GfxVegetation v)
 
const char * SimGearboxModeToStr (SimGearboxMode v)
 
const char * GfxFlaresModeToStr (GfxFlaresMode v)
 
const char * GfxWaterModeToStr (GfxWaterMode v)
 
const char * GfxSkyModeToStr (GfxSkyMode v)
 
void AssignHelper (CVar *cvar, int val)
 
void ParseHelper (CVar *cvar, std::string const &val)
 
void WriteVarsHelper (std::stringstream &f, const char *label, const char *prefix)
 

Variables

const char * CONF_GFX_SHADOW_PSSM = "Parallel-split Shadow Maps"
 
const char * CONF_GFX_SHADOW_NONE = "No shadows (fastest)"
 
const char * CONF_EXTCAM_PITCHING = "Pitching"
 
const char * CONF_EXTCAM_STATIC = "Static"
 
const char * CONF_EXTCAM_NONE = "None"
 
const char * CONF_TEXFILTER_NONE = "None (fastest)"
 
const char * CONF_TEXFILTER_BILI = "Bilinear"
 
const char * CONF_TEXFILTER_TRILI = "Trilinear"
 
const char * CONF_TEXFILTER_ANISO = "Anisotropic (best looking)"
 
const char * CONF_VEGET_NONE = "None (fastest)"
 
const char * CONF_VEGET_20PERC = "20%"
 
const char * CONF_VEGET_50PERC = "50%"
 
const char * CONF_VEGET_FULL = "Full (best looking, slower)"
 
const char * CONF_GEARBOX_AUTO = "Automatic shift"
 
const char * CONF_GEARBOX_SEMIAUTO = "Manual shift - Auto clutch"
 
const char * CONF_GEARBOX_MANUAL = "Fully Manual: sequential shift"
 
const char * CONF_GEARBOX_MAN_STICK = "Fully manual: stick shift"
 
const char * CONF_GEARBOX_MAN_RANGES = "Fully Manual: stick shift with ranges"
 
const char * CONF_FLARES_NONE = "None (fastest)"
 
const char * CONF_FLARES_NO_LIGHT = "No light sources"
 
const char * CONF_FLARES_CURR_HEAD = "Only current vehicle, main lights"
 
const char * CONF_FLARES_ALL_HEADS = "All vehicles, main lights"
 
const char * CONF_FLARES_ALL_LIGHTS = "All vehicles, all lights"
 
const char * CONF_WATER_NONE = "None"
 
const char * CONF_WATER_BASIC = "Basic (fastest)"
 
const char * CONF_WATER_REFLECT = "Reflection"
 
const char * CONF_WATER_FULL_FAST = "Reflection + refraction (speed optimized)"
 
const char * CONF_WATER_FULL_HQ = "Reflection + refraction (quality optimized)"
 
const char * CONF_WATER_HYDRAX = "Hydrax"
 
const char * CONF_SKY_CAELUM = "Caelum (best looking, slower)"
 
const char * CONF_SKY_SKYX = "SkyX (best looking, slower)"
 
const char * CONF_SKY_SANDSTORM = "Sandstorm (fastest)"
 
const char * CONF_INPUT_GRAB_DYNAMIC = "Dynamically"
 
const char * CONF_INPUT_GRAB_NONE = "None"
 
const char * CONF_INPUT_GRAB_ALL = "All"
 

Macro Definition Documentation

◆ CONFIG_FILE_NAME

#define CONFIG_FILE_NAME   "RoR.cfg"

Definition at line 37 of file AppConfig.cpp.

Function Documentation

◆ AssignHelper()

void AssignHelper ( CVar cvar,
int  val 
)

Definition at line 273 of file AppConfig.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GfxExtCamModeToStr()

const char* GfxExtCamModeToStr ( GfxExtCamMode  v)

Definition at line 184 of file AppConfig.cpp.

+ Here is the caller graph for this function:

◆ GfxFlaresModeToStr()

const char* GfxFlaresModeToStr ( GfxFlaresMode  v)

Definition at line 232 of file AppConfig.cpp.

+ Here is the caller graph for this function:

◆ GfxShadowTypeToStr()

const char* GfxShadowTypeToStr ( GfxShadowType  v)

Definition at line 174 of file AppConfig.cpp.

+ Here is the caller graph for this function:

◆ GfxSkyModeToStr()

const char* GfxSkyModeToStr ( GfxSkyMode  v)

Definition at line 259 of file AppConfig.cpp.

+ Here is the caller graph for this function:

◆ GfxTexFilterToStr()

const char* GfxTexFilterToStr ( GfxTexFilter  v)

Definition at line 195 of file AppConfig.cpp.

+ Here is the caller graph for this function:

◆ GfxVegetationToStr()

const char* GfxVegetationToStr ( GfxVegetation  v)

Definition at line 207 of file AppConfig.cpp.

+ Here is the caller graph for this function:

◆ GfxWaterModeToStr()

const char* GfxWaterModeToStr ( GfxWaterMode  v)

Definition at line 245 of file AppConfig.cpp.

+ Here is the caller graph for this function:

◆ IoInputGrabModeToStr()

const char* IoInputGrabModeToStr ( IoInputGrabMode  v)

Definition at line 163 of file AppConfig.cpp.

◆ ParseGfxExtCamMode()

GfxExtCamMode ParseGfxExtCamMode ( std::string const &  s)

Definition at line 99 of file AppConfig.cpp.

+ Here is the caller graph for this function:

◆ ParseGfxFlaresMode()

GfxFlaresMode ParseGfxFlaresMode ( std::string const &  s)

Definition at line 134 of file AppConfig.cpp.

+ Here is the caller graph for this function:

◆ ParseGfxShadowType()

GfxShadowType ParseGfxShadowType ( std::string const &  s)

Definition at line 93 of file AppConfig.cpp.

+ Here is the caller graph for this function:

◆ ParseGfxSkyMode()

GfxSkyMode ParseGfxSkyMode ( std::string const &  s)

Definition at line 155 of file AppConfig.cpp.

+ Here is the caller graph for this function:

◆ ParseGfxTexFilter()

GfxTexFilter ParseGfxTexFilter ( std::string const &  s)

Definition at line 106 of file AppConfig.cpp.

+ Here is the caller graph for this function:

◆ ParseGfxVegetation()

GfxVegetation ParseGfxVegetation ( std::string const &  s)

Definition at line 115 of file AppConfig.cpp.

+ Here is the caller graph for this function:

◆ ParseGfxWaterMode()

GfxWaterMode ParseGfxWaterMode ( std::string const &  s)

Definition at line 144 of file AppConfig.cpp.

+ Here is the caller graph for this function:

◆ ParseHelper()

void ParseHelper ( CVar cvar,
std::string const &  val 
)

Definition at line 279 of file AppConfig.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ParseIoInputGrabMode()

IoInputGrabMode ParseIoInputGrabMode ( std::string const &  s)

Definition at line 86 of file AppConfig.cpp.

◆ ParseSimGearboxMode()

SimGearboxMode ParseSimGearboxMode ( std::string const &  s)

Definition at line 124 of file AppConfig.cpp.

+ Here is the caller graph for this function:

◆ SimGearboxModeToStr()

const char* SimGearboxModeToStr ( SimGearboxMode  v)

Definition at line 219 of file AppConfig.cpp.

+ Here is the caller graph for this function:

◆ WriteVarsHelper()

void WriteVarsHelper ( std::stringstream &  f,
const char *  label,
const char *  prefix 
)

Definition at line 375 of file AppConfig.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ CONF_EXTCAM_NONE

const char* CONF_EXTCAM_NONE = "None"

Definition at line 47 of file AppConfig.cpp.

◆ CONF_EXTCAM_PITCHING

const char* CONF_EXTCAM_PITCHING = "Pitching"

Definition at line 45 of file AppConfig.cpp.

◆ CONF_EXTCAM_STATIC

const char* CONF_EXTCAM_STATIC = "Static"

Definition at line 46 of file AppConfig.cpp.

◆ CONF_FLARES_ALL_HEADS

const char* CONF_FLARES_ALL_HEADS = "All vehicles, main lights"

Definition at line 68 of file AppConfig.cpp.

◆ CONF_FLARES_ALL_LIGHTS

const char* CONF_FLARES_ALL_LIGHTS = "All vehicles, all lights"

Definition at line 69 of file AppConfig.cpp.

◆ CONF_FLARES_CURR_HEAD

const char* CONF_FLARES_CURR_HEAD = "Only current vehicle, main lights"

Definition at line 67 of file AppConfig.cpp.

◆ CONF_FLARES_NO_LIGHT

const char* CONF_FLARES_NO_LIGHT = "No light sources"

Definition at line 66 of file AppConfig.cpp.

◆ CONF_FLARES_NONE

const char* CONF_FLARES_NONE = "None (fastest)"

Definition at line 65 of file AppConfig.cpp.

◆ CONF_GEARBOX_AUTO

const char* CONF_GEARBOX_AUTO = "Automatic shift"

Definition at line 59 of file AppConfig.cpp.

◆ CONF_GEARBOX_MAN_RANGES

const char* CONF_GEARBOX_MAN_RANGES = "Fully Manual: stick shift with ranges"

Definition at line 63 of file AppConfig.cpp.

◆ CONF_GEARBOX_MAN_STICK

const char* CONF_GEARBOX_MAN_STICK = "Fully manual: stick shift"

Definition at line 62 of file AppConfig.cpp.

◆ CONF_GEARBOX_MANUAL

const char* CONF_GEARBOX_MANUAL = "Fully Manual: sequential shift"

Definition at line 61 of file AppConfig.cpp.

◆ CONF_GEARBOX_SEMIAUTO

const char* CONF_GEARBOX_SEMIAUTO = "Manual shift - Auto clutch"

Definition at line 60 of file AppConfig.cpp.

◆ CONF_GFX_SHADOW_NONE

const char* CONF_GFX_SHADOW_NONE = "No shadows (fastest)"

Definition at line 43 of file AppConfig.cpp.

◆ CONF_GFX_SHADOW_PSSM

const char* CONF_GFX_SHADOW_PSSM = "Parallel-split Shadow Maps"

Definition at line 42 of file AppConfig.cpp.

◆ CONF_INPUT_GRAB_ALL

const char* CONF_INPUT_GRAB_ALL = "All"

Definition at line 84 of file AppConfig.cpp.

◆ CONF_INPUT_GRAB_DYNAMIC

const char* CONF_INPUT_GRAB_DYNAMIC = "Dynamically"

Definition at line 82 of file AppConfig.cpp.

◆ CONF_INPUT_GRAB_NONE

const char* CONF_INPUT_GRAB_NONE = "None"

Definition at line 83 of file AppConfig.cpp.

◆ CONF_SKY_CAELUM

const char* CONF_SKY_CAELUM = "Caelum (best looking, slower)"

Definition at line 78 of file AppConfig.cpp.

◆ CONF_SKY_SANDSTORM

const char* CONF_SKY_SANDSTORM = "Sandstorm (fastest)"

Definition at line 80 of file AppConfig.cpp.

◆ CONF_SKY_SKYX

const char* CONF_SKY_SKYX = "SkyX (best looking, slower)"

Definition at line 79 of file AppConfig.cpp.

◆ CONF_TEXFILTER_ANISO

const char* CONF_TEXFILTER_ANISO = "Anisotropic (best looking)"

Definition at line 52 of file AppConfig.cpp.

◆ CONF_TEXFILTER_BILI

const char* CONF_TEXFILTER_BILI = "Bilinear"

Definition at line 50 of file AppConfig.cpp.

◆ CONF_TEXFILTER_NONE

const char* CONF_TEXFILTER_NONE = "None (fastest)"

Definition at line 49 of file AppConfig.cpp.

◆ CONF_TEXFILTER_TRILI

const char* CONF_TEXFILTER_TRILI = "Trilinear"

Definition at line 51 of file AppConfig.cpp.

◆ CONF_VEGET_20PERC

const char* CONF_VEGET_20PERC = "20%"

Definition at line 55 of file AppConfig.cpp.

◆ CONF_VEGET_50PERC

const char* CONF_VEGET_50PERC = "50%"

Definition at line 56 of file AppConfig.cpp.

◆ CONF_VEGET_FULL

const char* CONF_VEGET_FULL = "Full (best looking, slower)"

Definition at line 57 of file AppConfig.cpp.

◆ CONF_VEGET_NONE

const char* CONF_VEGET_NONE = "None (fastest)"

Definition at line 54 of file AppConfig.cpp.

◆ CONF_WATER_BASIC

const char* CONF_WATER_BASIC = "Basic (fastest)"

Definition at line 72 of file AppConfig.cpp.

◆ CONF_WATER_FULL_FAST

const char* CONF_WATER_FULL_FAST = "Reflection + refraction (speed optimized)"

Definition at line 74 of file AppConfig.cpp.

◆ CONF_WATER_FULL_HQ

const char* CONF_WATER_FULL_HQ = "Reflection + refraction (quality optimized)"

Definition at line 75 of file AppConfig.cpp.

◆ CONF_WATER_HYDRAX

const char* CONF_WATER_HYDRAX = "Hydrax"

Definition at line 76 of file AppConfig.cpp.

◆ CONF_WATER_NONE

const char* CONF_WATER_NONE = "None"

Definition at line 71 of file AppConfig.cpp.

◆ CONF_WATER_REFLECT

const char* CONF_WATER_REFLECT = "Reflection"

Definition at line 73 of file AppConfig.cpp.