Esempio n. 1
0
        public void End()
        {
            ImGuiIOPtr  io  = ImGui.GetIO();
            Application app = Application.Instance;

            io.DisplaySize = new Vector2((float)app.Window.Width, (float)app.Window.Height);

            // Rendering
            ImGui.Render();
            ImGuiController.ImGui_ImplOpenGL3_RenderDrawData(ImGui.GetDrawData());

            if ((io.ConfigFlags & ImGuiConfigFlags.ViewportsEnable) > 0)
            {
                GLFW.Window backup_current_context = GLFW.Glfw.CurrentContext;
                ImGui.UpdatePlatformWindows();
                ImGui.RenderPlatformWindowsDefault();
                GLFW.Glfw.MakeContextCurrent(backup_current_context);
            }
        }