feat: add map background color

This commit is contained in:
2021-12-12 16:13:05 +01:00
parent 43f21ffd44
commit 1a091baeaf
10 changed files with 32 additions and 4 deletions

View File

@@ -17,7 +17,7 @@
namespace td {
namespace render {
Renderer::Renderer() {
Renderer::Renderer() : m_BackgroundColor(0, 0, 0) {
}
@@ -86,7 +86,7 @@ void Renderer::updateIsometricFade() {
void Renderer::prepare() {
glClear(GL_COLOR_BUFFER_BIT);
glClearColor(0, 0, 0, 0);
glClearColor(m_BackgroundColor.r, m_BackgroundColor.g, m_BackgroundColor.b, 0);
updateIsometricFade();
}