Getters/setters moved to the header file
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user