|
|
|
|
@ -75,6 +75,7 @@ namespace lunarium
|
|
|
|
|
mbShowDemo = true;
|
|
|
|
|
|
|
|
|
|
Logger::Log(LogCategory::GRAPHICS, LogLevel::INFO, "ImGui setup");
|
|
|
|
|
mbIsInit = true;
|
|
|
|
|
return OpRes::OK();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -101,6 +102,7 @@ namespace lunarium
|
|
|
|
|
{
|
|
|
|
|
if (!mbIsInit)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ImGui::ShowDemoWindow(&mbShowDemo);
|
|
|
|
|
ImGui::Render();
|
|
|
|
|
@ -108,10 +110,10 @@ namespace lunarium
|
|
|
|
|
|
|
|
|
|
if (ImGui::GetIO().ConfigFlags & ImGuiConfigFlags_ViewportsEnable)
|
|
|
|
|
{
|
|
|
|
|
GLFWwindow* backup_current_context = glfwGetCurrentContext();
|
|
|
|
|
//GLFWwindow* backup_current_context = glfwGetCurrentContext();
|
|
|
|
|
ImGui::UpdatePlatformWindows();
|
|
|
|
|
ImGui::RenderPlatformWindowsDefault();
|
|
|
|
|
glfwMakeContextCurrent(backup_current_context);
|
|
|
|
|
//glfwMakeContextCurrent(backup_current_context);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|