[studio] Make clear screen before redraw

This commit is contained in:
2023-06-18 17:56:01 -05:00
parent 47858ef619
commit 0f797a17d5
4 changed files with 10 additions and 13 deletions

View File

@ -184,4 +184,9 @@ void sendEbo(const BufferSet &bs) noexcept {
glBufferData(GL_ELEMENT_ARRAY_BUFFER, bufferSize, bs.elements.data(), GL_STATIC_DRAW);
}
void clearScreen() noexcept {
glClearColor(0, 0, 0, 1);
glClear(GL_COLOR_BUFFER_BIT);
}
}

View File

@ -15,7 +15,7 @@
namespace glutils {
constexpr auto GlslVersion = "#version 330";
constexpr ox::StringView GlslVersion = "#version 330";
struct Empty {};
@ -176,4 +176,6 @@ void sendVbo(const BufferSet &bs) noexcept;
void sendEbo(const BufferSet &bs) noexcept;
void clearScreen() noexcept;
}