[nostalgia/core] Add focusWindow, cleanup GLFW leak into Userland, change shutdown to stop main loop

This commit is contained in:
2021-07-23 21:52:26 -05:00
parent 7dfa2f5713
commit 32ac497a0e
8 changed files with 50 additions and 19 deletions
+5 -1
View File
@@ -8,6 +8,9 @@
#include <array>
#define IMGUI_IMPL_OPENGL_ES3
#include <imgui_impl_opengl3.h>
#include <nostalgia/glutils/glutils.hpp>
#include <ox/std/bit.hpp>
@@ -18,6 +21,7 @@
namespace nostalgia::core {
void ImGui_Impl_NewFrame() noexcept;
namespace renderer {
@@ -267,7 +271,7 @@ void draw(Context *ctx) noexcept {
const auto id = ctx->rendererData<renderer::GlImplData>();
renderer::tickFps(id);
ImGui_ImplOpenGL3_NewFrame();
ImGui_ImplGlfw_NewFrame();
ImGui_Impl_NewFrame();
if constexpr(config::ImGuiEnabled) {
ImGui::NewFrame();
}