Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Configuration.cpp
Go to the documentation of this file.
1
2
4
6
7namespace Divide {
8
9bool Configuration::fromXML(const ResourcePath& xmlFilePath, const char* fileName )
10{
11 Console::printfn(LOCALE_STR("XML_LOAD_CONFIG"), (xmlFilePath.string() + fileName).c_str());
12 if (LoadSave.read(xmlFilePath, fileName, "config."))
13 {
158
163 {
165 }
166
167 return true;
168 }
169
170 return false;
171}
172
173bool Configuration::toXML(const ResourcePath& xmlFilePath, const char* fileName ) const
174{
318
319 return LoadSave.write( xmlFilePath, fileName );
320}
321
323{
324 if (changed() && toXML(LoadSave._filePath, LoadSave._fileName.c_str()))
325 {
326 changed(false);
327 }
328}
329}; //namespace Divide
#define LOCALE_STR(X)
Definition: Localization.h:91
#define PUT_PARAM_ATTRIB(X, Y)
Definition: XMLParser.h:79
#define GET_PARAM(X)
Definition: XMLParser.h:69
#define GET_PARAM_ATTRIB(X, Y)
Definition: XMLParser.h:74
#define PUT_PARAM(X)
Definition: XMLParser.h:83
Handle console commands that start with a forward slash.
Definition: AIProcessor.cpp:7
struct Divide::Configuration::Debug::RenderFilter renderFilter
struct Divide::Configuration::Debug::Cache cache
struct Divide::Configuration::Debug::Renderer renderer
struct Divide::Configuration::GUI::CEGUI cegui
bool enabled
F32 luminanceBias
F32 fdofstart
bool autoFocus
bool vignetting
F32 vignin
F32 fdofdist
F32 focalLength
F32 focalDepth
F32 ndofstart
bool enabled
F32 ndofdist
vec2< F32 > focalPoint
bool debugFocus
F32 vignout
string fStop
bool manualdof
F32 velocityScale
bool enablePerObject
U8 qualityLevel
string type
SSAOSettings FullRes
bool enable
SSAOSettings HalfRes
bool UseHalfResolution
F32 maxDistance
bool enabled
F32 jitterAmount
F32 stride
F32 screenEdgeFadeStart
F32 zThickness
F32 eyeFadeEnd
F32 strideZCutoff
U16 maxSteps
U8 binarySearchIterations
F32 eyeFadeStart
string mappingFunction
F32 tau
bool adaptive
F32 manualExposureFactor
F32 maxLogLuminance
F32 minLogLuminance
struct Divide::Configuration::Rendering::PostFX::SSAO ssao
struct Divide::Configuration::Rendering::PostFX::DOF dof
struct Divide::Configuration::Rendering::PostFX::MotionBlur motionBlur
struct Divide::Configuration::Rendering::PostFX::ToneMap toneMap
struct Divide::Configuration::Rendering::PostFX::PostAA postAA
struct Divide::Configuration::Rendering::PostFX::Bloom bloom
struct Divide::Configuration::Rendering::PostFX::SSR ssr
Divide::Configuration::Rendering::ShadowMapping::CSMSettings csm
struct Divide::Configuration::Rendering::PostFX postFX
struct Divide::Configuration::Rendering::ShadowMapping shadowMapping
struct Divide::Configuration::Rendering rendering
struct Divide::Configuration::DefaultAssetLocation defaultAssetLocation
bool toXML(const ResourcePath &xmlFilePath, const char *fileName) const override
struct Divide::Configuration::Terrain terrain
bool fromXML(const ResourcePath &xmlFilePath, const char *fileName) override
struct Divide::Configuration::Runtime runtime
struct Divide::Configuration::Debug debug
struct Divide::Configuration::GUI gui
static NO_INLINE void printfn(const char *format, T &&... args)
StringReturnType< N > string() const noexcept
Definition: ResourcePath.h:64