OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4ConfigGraphics Class Reference

#include <C4Config.h>

Public Member Functions

void CompileFunc (StdCompiler *pComp)
 

Public Attributes

int32_t SplitscreenDividers
 
int32_t ShowStartupMessages
 
int32_t VerboseObjectLoading
 
int32_t MenuTransparency
 
int32_t UpperBoard
 
int32_t ShowClock
 
int32_t ResX
 
int32_t ResY
 
int32_t WindowX
 
int32_t WindowY
 
int32_t RefreshRate
 
int32_t Windowed
 
int32_t ShowCrewNames
 
int32_t ShowCrewCNames
 
int32_t PXSGfx
 
int32_t Gamma
 
int32_t Currency
 
int32_t Monitor
 
int32_t MaxRefreshDelay
 
int32_t NoOffscreenBlits
 
int32_t MultiSampling
 
int32_t AutoFrameSkip
 
int32_t DebugOpenGL
 
int32_t MouseCursorSize
 

Detailed Description

Definition at line 95 of file C4Config.h.

Member Function Documentation

void C4ConfigGraphics::CompileFunc ( StdCompiler pComp)

Definition at line 116 of file C4Config.cpp.

References AutoFrameSkip, Currency, Gamma, MaxRefreshDelay, MenuTransparency, mkNamingAdapt(), Monitor, MouseCursorSize, MultiSampling, NoOffscreenBlits, PXSGfx, RefreshRate, ResX, ResY, ShowClock, ShowCrewCNames, ShowCrewNames, ShowStartupMessages, SplitscreenDividers, UpperBoard, StdCompiler::Value(), VerboseObjectLoading, Windowed, WindowX, and WindowY.

117 {
118  pComp->Value(mkNamingAdapt(ResX, "ResolutionX", -1 ,false, true));
119  pComp->Value(mkNamingAdapt(ResY, "ResolutionY", -1 ,false, true));
120  pComp->Value(mkNamingAdapt(WindowX, "WindowX", 800 ,false, true));
121  pComp->Value(mkNamingAdapt(WindowY, "WindowY", 600 ,false, true));
122  pComp->Value(mkNamingAdapt(RefreshRate, "RefreshRate", 0 ));
123  pComp->Value(mkNamingAdapt(SplitscreenDividers, "SplitscreenDividers", 1 ));
124  pComp->Value(mkNamingAdapt(ShowStartupMessages, "ShowStartupMessages", 1 ,false, true));
125  pComp->Value(mkNamingAdapt(VerboseObjectLoading, "VerboseObjectLoading", 0 ));
126  pComp->Value(mkNamingAdapt(MenuTransparency, "MenuTransparency", 1 ,false, true));
127  pComp->Value(mkNamingAdapt(UpperBoard, "UpperBoard", 1 ,false, true));
128  pComp->Value(mkNamingAdapt(ShowClock, "ShowClock", 0 ,false, true));
129  pComp->Value(mkNamingAdapt(ShowCrewNames, "ShowCrewNames", 1 ,false, true));
130  pComp->Value(mkNamingAdapt(ShowCrewCNames, "ShowCrewCNames", 0 ,false, true));
131  pComp->Value(mkNamingAdapt(Windowed, "Windowed", 0 ,false, true));
132  pComp->Value(mkNamingAdapt(PXSGfx, "PXSGfx" , 1 ));
133  pComp->Value(mkNamingAdapt(Gamma, "Gamma" , 100 ));
134  pComp->Value(mkNamingAdapt(Currency, "Currency" , 0 ));
135  pComp->Value(mkNamingAdapt(Monitor, "Monitor", 0 )); // 0 = D3DADAPTER_DEFAULT
136  pComp->Value(mkNamingAdapt(MaxRefreshDelay, "MaxRefreshDelay", 30 ));
137  pComp->Value(mkNamingAdapt(NoOffscreenBlits, "NoOffscreenBlits", 1 ));
138  pComp->Value(mkNamingAdapt(MultiSampling, "MultiSampling", 4 ));
139  pComp->Value(mkNamingAdapt(AutoFrameSkip, "AutoFrameSkip", 1 ));
140  pComp->Value(mkNamingAdapt(MouseCursorSize, "MouseCursorSize", 50 ));
141 }
int32_t RefreshRate
Definition: C4Config.h:106
int32_t MultiSampling
Definition: C4Config.h:116
int32_t MenuTransparency
Definition: C4Config.h:101
int32_t VerboseObjectLoading
Definition: C4Config.h:100
int32_t Windowed
Definition: C4Config.h:107
int32_t ShowCrewNames
Definition: C4Config.h:108
int32_t MouseCursorSize
Definition: C4Config.h:119
int32_t UpperBoard
Definition: C4Config.h:102
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
Definition: StdAdaptors.h:93
int32_t ShowCrewCNames
Definition: C4Config.h:109
int32_t MaxRefreshDelay
Definition: C4Config.h:114
int32_t WindowX
Definition: C4Config.h:105
int32_t NoOffscreenBlits
Definition: C4Config.h:115
void Value(const T &rStruct)
Definition: StdCompiler.h:171
int32_t PXSGfx
Definition: C4Config.h:110
int32_t Monitor
Definition: C4Config.h:113
int32_t WindowY
Definition: C4Config.h:105
int32_t SplitscreenDividers
Definition: C4Config.h:98
int32_t ResX
Definition: C4Config.h:104
int32_t ResY
Definition: C4Config.h:104
int32_t Gamma
Definition: C4Config.h:111
int32_t Currency
Definition: C4Config.h:112
int32_t AutoFrameSkip
Definition: C4Config.h:117
int32_t ShowClock
Definition: C4Config.h:103
int32_t ShowStartupMessages
Definition: C4Config.h:99

Here is the call graph for this function:

Member Data Documentation

int32_t C4ConfigGraphics::AutoFrameSkip
int32_t C4ConfigGraphics::Currency

Definition at line 112 of file C4Config.h.

Referenced by CompileFunc().

int32_t C4ConfigGraphics::DebugOpenGL
int32_t C4ConfigGraphics::Gamma

Definition at line 111 of file C4Config.h.

Referenced by CompileFunc(), and C4Game::SetDefaultGamma().

int32_t C4ConfigGraphics::MaxRefreshDelay

Definition at line 114 of file C4Config.h.

Referenced by CompileFunc(), and C4ApplicationGameTimer::SetGameTickDelay().

int32_t C4ConfigGraphics::MenuTransparency

Definition at line 101 of file C4Config.h.

Referenced by CompileFunc().

int32_t C4ConfigGraphics::Monitor
int32_t C4ConfigGraphics::MouseCursorSize

Definition at line 119 of file C4Config.h.

Referenced by CompileFunc(), and C4MouseControl::Draw().

int32_t C4ConfigGraphics::MultiSampling

Definition at line 116 of file C4Config.h.

Referenced by C4StartupOptionsDlg::C4StartupOptionsDlg(), and CompileFunc().

int32_t C4ConfigGraphics::NoOffscreenBlits

Definition at line 115 of file C4Config.h.

Referenced by CompileFunc().

int32_t C4ConfigGraphics::PXSGfx

Definition at line 110 of file C4Config.h.

Referenced by CompileFunc(), and C4PXSSystem::Draw().

int32_t C4ConfigGraphics::RefreshRate
int32_t C4ConfigGraphics::ShowClock
int32_t C4ConfigGraphics::ShowCrewCNames
int32_t C4ConfigGraphics::ShowCrewNames
int32_t C4ConfigGraphics::ShowStartupMessages

Definition at line 99 of file C4Config.h.

Referenced by CompileFunc(), and C4Application::PreInit().

int32_t C4ConfigGraphics::SplitscreenDividers

Definition at line 98 of file C4Config.h.

Referenced by CompileFunc(), and C4ViewportList::RecalculateViewports().

int32_t C4ConfigGraphics::VerboseObjectLoading

Definition at line 100 of file C4Config.h.

Referenced by CompileFunc(), and C4ParticleDef::Load().

int32_t C4ConfigGraphics::Windowed
int32_t C4ConfigGraphics::WindowX
int32_t C4ConfigGraphics::WindowY

The documentation for this class was generated from the following files: