Skip to content

Commit

Permalink
Upgrade dependencies and add more ImGUI debug panels
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinHelmut committed Sep 13, 2024
1 parent c338fdb commit 15107f2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
7 changes: 5 additions & 2 deletions src/core/Core/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ ExitStatus App::Application::run() {
if (ImGui::BeginMenu("View")) {
ImGui::MenuItem("Some Panel", nullptr, &m_show_some_panel);
ImGui::MenuItem("ImGui Demo Panel", nullptr, &m_show_demo_panel);
ImGui::MenuItem("Debug Panel", nullptr, &m_show_debug_panel);
ImGui::MenuItem("Debug Panels", nullptr, &m_show_debug_panel);
ImGui::EndMenu();
}

Expand All @@ -142,7 +142,10 @@ ExitStatus App::Application::run() {

// Debug panel
if (m_show_debug_panel) {
ImGui::Begin("Debug panel", &m_show_debug_panel);
ImGui::ShowMetricsWindow();
ImGui::ShowDebugLogWindow();

ImGui::Begin("App debug panel", &m_show_debug_panel);
ImGui::Text("User config path: %s", user_config_path.c_str());
ImGui::Separator();
ImGui::Text("Font path: %s", font_path.c_str());
Expand Down
6 changes: 3 additions & 3 deletions vendor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ FetchContent_Declare(
FetchContent_Declare(
fmt
GIT_REPOSITORY "https://github.com/fmtlib/fmt.git"
GIT_TAG 11.0.1
GIT_TAG 11.0.2
)

FetchContent_Declare(
Expand All @@ -23,13 +23,13 @@ FetchContent_Declare(
FetchContent_Declare(
imgui
GIT_REPOSITORY "https://github.com/ocornut/imgui.git"
GIT_TAG 527b2c45af2f8964f95826bd16ab7c7ed372ae41 # Branch: docking, date: 02.07.2024, 19:05 GMT+2
GIT_TAG 68aa9a86ec933510073932980a0940742ecc833c # Branch: docking, date: 10.09.2024, 04:29 GMT+2
)

FetchContent_Declare(
SDL2
GIT_REPOSITORY "https://github.com/libsdl-org/SDL.git"
GIT_TAG release-2.30.5
GIT_TAG release-2.30.7
)

FetchContent_Declare(
Expand Down
5 changes: 1 addition & 4 deletions vendor/imgui-setup/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
FetchContent_GetProperties(imgui)
if (NOT imgui_POPULATED)
FetchContent_Populate(imgui)
endif ()
FetchContent_MakeAvailable(imgui)

add_library(imgui
${imgui_SOURCE_DIR}/imgui.cpp ${imgui_SOURCE_DIR}/imgui.h
Expand Down

0 comments on commit 15107f2

Please sign in to comment.