summaryrefslogtreecommitdiffhomepage
path: root/main/gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main/gui.cpp')
-rw-r--r--main/gui.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/main/gui.cpp b/main/gui.cpp
index e665c27b..22bb95fd 100644
--- a/main/gui.cpp
+++ b/main/gui.cpp
@@ -9,20 +9,17 @@ namespace floormat {
using namespace floormat::imgui;
-void app::setup_menu()
+void app::display_menu()
{
GL::Renderer::setBlendEquation(GL::Renderer::BlendEquation::Add, GL::Renderer::BlendEquation::Add);
GL::Renderer::setBlendFunction(GL::Renderer::BlendFunction::SourceAlpha, GL::Renderer::BlendFunction::OneMinusSourceAlpha);
-}
-
-void app::display_menu()
-{
GL::Renderer::enable(GL::Renderer::Feature::Blending);
+
GL::Renderer::enable(GL::Renderer::Feature::ScissorTest);
GL::Renderer::disable(GL::Renderer::Feature::FaceCulling);
GL::Renderer::disable(GL::Renderer::Feature::DepthTest);
+
_imgui.drawFrame();
- GL::Renderer::enable(GL::Renderer::Feature::ScissorTest);
}
void app::do_menu()