Getters/setters moved to the header file

This commit is contained in:
Vladyslav Baranovskyi
2024-06-04 11:17:41 +03:00
parent 879ab8c809
commit 4e5b9319e6
2 changed files with 6 additions and 36 deletions

View File

@@ -61,34 +61,4 @@ namespace OpenVulkano
static EngineConfiguration config;
return &config;
}
void EngineConfiguration::SetNumThreads(uint32_t numThreads)
{
m_numThreads = numThreads;
}
uint32_t EngineConfiguration::GetNumThreads() const
{
return std::max(static_cast<uint32_t>(1), m_numThreads);
}
void EngineConfiguration::SetFrameBufferClearColor(std::array<float, 4> frameBufferClearColor)
{
m_frameBufferClearColor = frameBufferClearColor;
}
const std::array<float, 4>& EngineConfiguration::GetFrameBufferClearColor() const
{
return m_frameBufferClearColor;
}
bool EngineConfiguration::GetPreferFramebufferFormatSRGB() const
{
return m_preferFramebufferFormatSRGB;
}
void EngineConfiguration::SetPreferFramebufferFormatSRGB(bool sRGB)
{
m_preferFramebufferFormatSRGB = sRGB;
}
}