4#include "imgui_impl_glfw.h" 
    5#include "imgui_impl_opengl3.h" 
    7#include "vendor/IconsFontAwesome5.h" 
   11    ImGui_ImplOpenGL3_Shutdown();
 
   12    ImGui_ImplGlfw_Shutdown();
 
   13    ImGui::DestroyContext();
 
   20    ImGui::CreateContext();
 
   21    if (!ImGui_ImplGlfw_InitForOpenGL(window, 
true))
 
   23    if (!ImGui_ImplOpenGL3_Init(
"#version 330 core"))
 
   25    ImGui::StyleColorsLight();
 
   27    ImGuiIO &io = ImGui::GetIO();
 
   28    io.Fonts->AddFontFromFileTTF(BLOSSOM_DATA_DIR 
"/SourceSansPro-Regular.ttf",
 
   32    config.MergeMode = 
true;
 
   33    static const ImWchar icon_ranges[] = { ICON_MIN_FA, ICON_MAX_FA, 0 };
 
   34    io.Fonts->AddFontFromFileTTF(
 
   35      BLOSSOM_DATA_DIR 
"/fa-solid-900.ttf", 16.0f, &config, icon_ranges);
 
   37    ImGui::GetStyle().WindowRounding = 10.0f;
 
   45    ImGui_ImplOpenGL3_NewFrame();
 
   46    ImGui_ImplGlfw_NewFrame();
 
   52    ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());
 
void render(int w, int h, State &state)
Render UI.
bool init(GLFWwindow *window)
Initialize ImGui and load fonts.
Storage of data of used algorithms and input events.