Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
RenderingOptions.h File Reference
#include "ps/CStr.h"
#include "ps/CStrIntern.h"
Include dependency graph for RenderingOptions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  RenderPathEnum
 
struct  RenderDebugModeEnum
 
class  CRenderingOptions
 

Macros

#define OPTION_DEFAULT_SETTER(NAME, TYPE)   public: void Set##NAME(TYPE value) { m_##NAME = value; }\
 
#define OPTION_CUSTOM_SETTER(NAME, TYPE)   public: void Set##NAME(TYPE value);\
 
#define OPTION_GETTER(NAME, TYPE)   public: TYPE Get##NAME() const { return m_##NAME; }\
 
#define OPTION_DEF(NAME, TYPE)   private: TYPE m_##NAME;
 
#define OPTION(NAME, TYPE)   OPTION_DEFAULT_SETTER(NAME, TYPE); OPTION_GETTER(NAME, TYPE); OPTION_DEF(NAME, TYPE);
 
#define OPTION_WITH_SIDE_EFFECT(NAME, TYPE)   OPTION_CUSTOM_SETTER(NAME, TYPE); OPTION_GETTER(NAME, TYPE); OPTION_DEF(NAME, TYPE);
 

Enumerations

enum  RenderPath { DEFAULT , FIXED , SHADER }
 
enum class  RenderDebugMode { NONE , AO , ALPHA , CUSTOM }
 

Variables

CRenderingOptions g_RenderingOptions
 

Macro Definition Documentation

◆ OPTION

#define OPTION (   NAME,
  TYPE 
)    OPTION_DEFAULT_SETTER(NAME, TYPE); OPTION_GETTER(NAME, TYPE); OPTION_DEF(NAME, TYPE);

◆ OPTION_CUSTOM_SETTER

#define OPTION_CUSTOM_SETTER (   NAME,
  TYPE 
)    public: void Set##NAME(TYPE value);\

◆ OPTION_DEF

#define OPTION_DEF (   NAME,
  TYPE 
)    private: TYPE m_##NAME;

◆ OPTION_DEFAULT_SETTER

#define OPTION_DEFAULT_SETTER (   NAME,
  TYPE 
)    public: void Set##NAME(TYPE value) { m_##NAME = value; }\

◆ OPTION_GETTER

#define OPTION_GETTER (   NAME,
  TYPE 
)    public: TYPE Get##NAME() const { return m_##NAME; }\

◆ OPTION_WITH_SIDE_EFFECT

#define OPTION_WITH_SIDE_EFFECT (   NAME,
  TYPE 
)    OPTION_CUSTOM_SETTER(NAME, TYPE); OPTION_GETTER(NAME, TYPE); OPTION_DEF(NAME, TYPE);

Enumeration Type Documentation

◆ RenderDebugMode

enum class RenderDebugMode
strong
Enumerator
NONE 
AO 
ALPHA 
CUSTOM 

◆ RenderPath

enum RenderPath
Enumerator
DEFAULT 
FIXED 
SHADER 

Variable Documentation

◆ g_RenderingOptions

CRenderingOptions g_RenderingOptions
extern