From abe844e772e1d4baccafa12a84c3ddea33877719 Mon Sep 17 00:00:00 2001 From: Pascal Engeler <engelerp@phys.ethz.ch> Date: Thu, 12 Aug 2021 19:40:20 +0200 Subject: [PATCH] changed printing, developer window shifted to debugging --- src/gui_handler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui_handler.cpp b/src/gui_handler.cpp index 9912457..12748eb 100644 --- a/src/gui_handler.cpp +++ b/src/gui_handler.cpp @@ -25,8 +25,8 @@ void GuiHandler::init(Toolbox& tb, const std::string path_img, const std::string const char* glsl_version = "#version 330"; ImGui_ImplOpenGL3_Init(glsl_version); + std::cout << "Loading images" << std::endl; load_button_textures_(path_img); - std::cout << "Images loaded" << std::endl; /*Load font*/ std::string fullpath_font = path_ttf + "Cousine-Regular.ttf"; @@ -162,8 +162,8 @@ void GuiHandler::update(Toolbox& tb) { draw_gui_ft_(tb); +#ifndef NDEBUG /*Debugging: Developer window*/ - ImGui::Begin("Developer", nullptr, ImGuiWindowFlags_AlwaysAutoResize); ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0 / double(ImGui::GetIO().Framerate), double(ImGui::GetIO().Framerate)); GLint total_mem_kb = 0; @@ -198,8 +198,8 @@ void GuiHandler::update(Toolbox& tb) { ImGui::Text("Timeout Threshold: %d s", tb.timeout_threshold); ImGui::Text("Timeout Timer: %d s", tb.timeout_timer); ImGui::End(); - - /*Debugging: Event Console*/ +#endif + /*Deep Debugging: Event Console*/ /* ImGui::SetNextWindowPos(ImVec2(tb.screen_w * (0.5), 0.f), ImGuiCond_Always); ImGui::Begin("Events", nullptr, ImGuiWindowFlags_AlwaysAutoResize); -- GitLab