diff --git a/cmake_options.cmake b/cmake_options.cmake index b6362cf1..d0d10cb0 100644 --- a/cmake_options.cmake +++ b/cmake_options.cmake @@ -6,7 +6,6 @@ option(BUILD_VIEWER "Build GUI data viewer") option(ENABLE_SCRIPT_DEBUG "Enable verbose script execution") option(ENABLE_PROFILING "Enable detailed profiling metrics") -option(ENABLE_IMGUI "Enable imgui plugin") option(TEST_DATA "Enable tests that require game data") diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index 9c4fa96e..8b03d62e 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -2,6 +2,4 @@ if(ENABLE_PROFILING) add_subdirectory(microprofile) endif() -if(ENABLE_IMGUI) - add_subdirectory(imgui) -endif() +add_subdirectory(imgui) diff --git a/rwgame/CMakeLists.txt b/rwgame/CMakeLists.txt index 3996ef0a..86e30200 100644 --- a/rwgame/CMakeLists.txt +++ b/rwgame/CMakeLists.txt @@ -71,17 +71,15 @@ target_link_libraries(librwgame SDL2::SDL2 ) -if(ENABLE_IMGUI) - target_compile_definitions(librwgame - PUBLIC - RW_IMGUI - ) +target_compile_definitions(librwgame + PUBLIC + RW_IMGUI + ) - target_link_libraries(librwgame - PUBLIC - imgui::sdl_gl3 - ) -endif() +target_link_libraries(librwgame + PUBLIC + imgui::sdl_gl3 + ) add_executable(rwgame main.cpp diff --git a/rwgame/RWImGui.cpp b/rwgame/RWImGui.cpp index d58ab49a..6ee496a5 100644 --- a/rwgame/RWImGui.cpp +++ b/rwgame/RWImGui.cpp @@ -4,8 +4,6 @@ #include #include -#ifdef RW_IMGUI - #include "RWGame.hpp" #include @@ -204,24 +202,3 @@ void RWImGui::endFrame(const ViewCamera& camera) { ImGui::Render(); ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData()); } - -#else - -RWImGui::RWImGui(RWGame &game) - : _game(game) { -} - -RWImGui::~RWImGui() { - destroy(); -} - -RWImGui::init(SDL_Window *window, SDL_GLContext context) { -} - -RWImGui::destroy() { -} - -RWImGui::process_event(SDL_Event &event) { -} - -#endif