26 ImGui::CreateContext();
27 ImGuiIO& io = ImGui::GetIO(); (void)io;
28 io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard;
29 io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad;
30 io.ConfigFlags |= ImGuiConfigFlags_DockingEnable;
31 io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable;
38 ImGuiStyle& style = ImGui::GetStyle();
39 if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable)
41 style.WindowRounding = 0.0f;
42 style.Colors[ImGuiCol_WindowBg].w = 1.0f;
49 ImGui_ImplGlfw_InitForOpenGL(window,
true);
85 ImGuiIO& io = ImGui::GetIO();
90 ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());
91 if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable)
93 GLFWwindow* backup_current_context = glfwGetCurrentContext();
94 ImGui::UpdatePlatformWindows();
95 ImGui::RenderPlatformWindowsDefault();
96 glfwMakeContextCurrent(backup_current_context);