[studio] Make clear screen before redraw
This commit is contained in:
parent
47858ef619
commit
0f797a17d5
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
}
|
||||
|
@ -1,11 +0,0 @@
|
||||
/*
|
||||
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <studio/module.hpp>
|
||||
|
||||
#include <ox/std/memory.hpp>
|
||||
|
||||
extern ox::Vector<std::function<ox::UPtr<studio::Module>()>> BuiltinModules;
|
@ -5,10 +5,10 @@
|
||||
#include <imgui.h>
|
||||
|
||||
#include <keel/media.hpp>
|
||||
#include <glutils/glutils.hpp>
|
||||
#include <turbine/turbine.hpp>
|
||||
|
||||
#include <studio/configio.hpp>
|
||||
#include "builtinmodules.hpp"
|
||||
#include "clawviewer.hpp"
|
||||
#include "filedialogmanager.hpp"
|
||||
#include "studioapp.hpp"
|
||||
@ -119,6 +119,7 @@ void StudioUI::handleKeyEvent(turbine::Key key, bool down) noexcept {
|
||||
}
|
||||
|
||||
void StudioUI::draw() noexcept {
|
||||
glutils::clearScreen();
|
||||
drawMenu();
|
||||
drawTabBar();
|
||||
if (m_showProjectExplorer) {
|
||||
|
Loading…
Reference in New Issue
Block a user