diff --git a/src/gui_handler.cpp b/src/gui_handler.cpp index 991245724dc68f1e97a8e53cb27f81e8fb2d9bf9..12748eb0b948c3afe3aee0e045b913b7cbf2f88e 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);