Refactor: added Screen interface class, LevelScreen

This commit is contained in:
MihailRis
2023-11-15 21:18:10 +03:00
parent 79aa754e66
commit fee25abb5e
11 changed files with 64 additions and 84 deletions
+6 -1
View File
@@ -110,9 +110,14 @@ int Window::initialize(DisplaySettings& settings){
}
void Window::clear() {
glClear(GL_COLOR_BUFFER_BIT);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
}
void Window::setBgColor(glm::vec3 color) {
glClearColor(color.r, color.g, color.b, 1.0f);
}
void Window::viewport(int x, int y, int width, int height){
glViewport(x, y, width, height);
}