21 for (
int i = 1; i <
Size; i++) {
22 std::string arg =
Args[i - 1];
23 std::string argnext =
Args[i];
25 if (arg[0] ==
'-' && argnext[0] !=
'-')
ArgMap[arg] = argnext;
48 std::map<std::string, std::string>
ArgMap;
139 float GetFrameTime()
const;
141 int GetVertices()
const;
143 int GetTriangles()
const;
145 const char* GetRendererTypeStr()
const;
147 void GetRendererTypeColor(
float& r,
float& g,
float& b)
const;
148 size_t GetGPUMemoryUsed()
const;
149 size_t GetGPUMemoryBudget()
const;
150 uint32_t GetMSAASampleCount()
const;
151 uint32_t GetMaxMSAASampleCount()
const;
152 void SetMSAASampleCount(uint32_t samples);
154 bool GetVSync()
const;
155 void SetVSync(
bool enabled);
158 bool IsSSAOEnabled()
const;
159 void SetSSAOEnabled(
bool enabled);
160 float GetSSAORadius()
const;
161 void SetSSAORadius(
float radius);
162 float GetSSAOBias()
const;
163 void SetSSAOBias(
float bias);
164 float GetSSAOPower()
const;
165 void SetSSAOPower(
float power);
168 bool IsIBLEnabled()
const;
169 void SetIBLEnabled(
bool enabled);
170 float GetIBLIntensity()
const;
171 void SetIBLIntensity(
float intensity);
174 bool IsSSREnabled()
const;
175 void SetSSREnabled(
bool enabled);
178 bool IsTAAEnabled()
const;
179 void SetTAAEnabled(
bool enabled);
182 bool IsBloomEnabled()
const;
183 void SetBloomEnabled(
bool enabled);
192 uint32_t GetGraphicsCaps()
const;
219 bool m_pendingResize =
false;
220 uint32_t m_pendingResizeW = 0;
221 uint32_t m_pendingResizeH = 0;
Application(const char *ProjectName)
Benchmark * GetBenchmark()
Application & operator=(const Application &)=delete
void WaitGPUIdle()
Blocks until the GPU finishes all in-flight work. Call before tearing down scene resources.
static Application * GetInstance()
The one Application for this process, or null before construction.
RenderEngine::Renderer * GetRenderer()
Active renderer backend, or null before Run() initializes it.
void SetMouseRelativeMode(bool enabled)
Application & operator=(Application &&)=delete
int Run(GameBase *game)
Drives the game loop until the window closes; returns the process exit code.
void SetCursorVisible(bool visible)
Abstract render backend: swapchain, frame lifecycle, and post-effect toggles.
Backend-facing rendering layer shared by the four graphics backends.
Root namespace for everything the engine exposes.
Arguments CommandLineArgs
const char * operator[](int index) const
const std::string operator[](std::string key) const
std::map< std::string, std::string > ArgMap
Arguments(int argc, char **argv)