public override void OnUpdate() { ImGuiNative.ImGui_ImplOpenGL3_NewFrame(); Imgui.NewFrame(); ImGuiIOPtr io = Imgui.GetIO(); io.DisplaySize = new Vector2(WindowsWindow.m_Data.Width, WindowsWindow.m_Data.Height); float time = (float)Glfw.Time; io.DeltaTime = m_Time > 0.0 ? (time - m_Time) : (1.0f / 60.0f); m_Time = time; bool show = true; Imgui.ShowDemoWindow(ref show); Imgui.Render(); ImGuiNative.ImGui_ImplOpenGL3_RenderDrawData(Imgui.GetDrawData()); }