MCPcopy Create free account
hub / github.com/Illation/ETEngine / GetSize

Method GetSize

Engine/source/EtFramework/Config/Config.cpp:49–63  ·  view source on GitHub ↗

------------------------------------ Config::Settings::Window::GetSize Retrieves the initial window size as defined by the config data - may be overridden at runtime

Source from the content-addressed store, hash-verified

47// Retrieves the initial window size as defined by the config data - may be overridden at runtime
48//
49ivec2 Config::Settings::Window::GetSize() const
50{
51 size_t const resIdx = Fullscreen ? FullscreenRes : WindowedRes;
52 if (resIdx < Resolutions.size())
53 {
54 return Resolutions[resIdx];
55 }
56
57 LOG(FS("Settings::Window::DeriveSettings > Invalid resolution index in '%s' mode: %u",
58 (Fullscreen ? "fullscreen" : "windowed"),
59 (Fullscreen ? FullscreenRes : WindowedRes)),
60 core::LogLevel::Warning);
61
62 return ivec2();
63}
64
65
66//========

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected