From 41fd38a7d7300f33319b36db2df917d0cc4e9000 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Tue, 10 Oct 2023 15:15:12 -0400 Subject: Add imgui debug menu with option to toggle debug wireframes --- src/game.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 0738984..8e9aad5 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1,6 +1,7 @@ #include "game.hpp" +#include "imgui.h" #include "vendor/glm_include.hpp" #include "game-settings.hpp" @@ -380,6 +381,10 @@ void RecordImGuiEditorWrapper() { } ImGui::EndMenu(); } + if (ImGui::BeginMenu("Debug")) { + ImGui::Checkbox("Show Debug Hitboxes", &pkeSettings.isRenderingDebug); + ImGui::EndMenu(); + } ImGui::EndMainMenuBar(); } -- cgit v1.2.3