27#ifndef INCLUDED_RENDERINGOPTIONS
28#define INCLUDED_RENDERINGOPTIONS
81#define OPTION_DEFAULT_SETTER(NAME, TYPE) \
82public: void Set##NAME(TYPE value) { m_##NAME = value; }\
84#define OPTION_CUSTOM_SETTER(NAME, TYPE) \
85public: void Set##NAME(TYPE value);\
87#define OPTION_GETTER(NAME, TYPE)\
88public: TYPE Get##NAME() const { return m_##NAME; }\
90#define OPTION_DEF(NAME, TYPE)\
91private: TYPE m_##NAME;
93#define OPTION(NAME, TYPE)\
94OPTION_DEFAULT_SETTER(NAME, TYPE); OPTION_GETTER(NAME, TYPE); OPTION_DEF(NAME, TYPE);
96#define OPTION_WITH_SIDE_EFFECT(NAME, TYPE)\
97OPTION_CUSTOM_SETTER(NAME, TYPE); OPTION_GETTER(NAME, TYPE); OPTION_DEF(NAME, TYPE);
124#undef OPTION_DEFAULT_SETTER
125#undef OPTION_CUSTOM_SETTER
129#undef OPTION_WITH_SIDE_EFFECT
CRenderingOptions g_RenderingOptions
Definition: RenderingOptions.cpp:35
RenderPath
Definition: RenderingOptions.h:36
@ DEFAULT
Definition: RenderingOptions.h:39
@ FIXED
Definition: RenderingOptions.h:42
@ SHADER
Definition: RenderingOptions.h:45
RenderDebugMode
Definition: RenderingOptions.h:55
Higher level interface on top of the whole frame rendering.
Definition: Renderer.h:50
Definition: RenderingOptions.cpp:38
Definition: RenderingOptions.h:69
OPTION(ShadowAlphaFix, bool)
void ReadConfigAndSetupHooks()
Definition: RenderingOptions.cpp:141
OPTION_WITH_SIDE_EFFECT(ShadowPCF, bool)
OPTION_WITH_SIDE_EFFECT(RenderPath, RenderPath)
OPTION_WITH_SIDE_EFFECT(RenderDebugMode, RenderDebugMode)
void ClearHooks()
Definition: RenderingOptions.cpp:280
OPTION(WaterReflection, bool)
OPTION(GPUSkinning, bool)
OPTION(WaterRefraction, bool)
OPTION(WaterFancyEffects, bool)
std::unique_ptr< ConfigHooks > m_ConfigHooks
Definition: RenderingOptions.h:133
OPTION_WITH_SIDE_EFFECT(Shadows, bool)
OPTION(WaterEffects, bool)
OPTION(Silhouettes, bool)
OPTION_WITH_SIDE_EFFECT(Fog, bool)
OPTION(DisplayShadowsFrustum, bool)
OPTION(DisplayFrustum, bool)
OPTION(WaterRealDepth, bool)
CRenderingOptions()
Definition: RenderingOptions.cpp:114
OPTION(RenderActors, bool)
~CRenderingOptions()
Definition: RenderingOptions.cpp:136
Interned 8-bit strings.
Definition: CStrIntern.h:38
Definition: RenderingOptions.h:63
static CStrIntern ToString(RenderDebugMode mode)
Definition: RenderingOptions.cpp:98
static RenderDebugMode FromString(const CStr8 &name)
Definition: RenderingOptions.cpp:83
Definition: RenderingOptions.h:49
static RenderPath FromString(const CStr8 &name)
Definition: RenderingOptions.cpp:56
static CStr8 ToString(RenderPath)
Definition: RenderingOptions.cpp:69