mirror of
https://github.com/rwengine/openrw.git
synced 2024-09-02 16:49:46 +02:00
Remove ImGui configuration option
This commit is contained in:
parent
baeffe6c8f
commit
35c90d1ebc
@ -6,7 +6,6 @@ option(BUILD_VIEWER "Build GUI data viewer")
|
|||||||
|
|
||||||
option(ENABLE_SCRIPT_DEBUG "Enable verbose script execution")
|
option(ENABLE_SCRIPT_DEBUG "Enable verbose script execution")
|
||||||
option(ENABLE_PROFILING "Enable detailed profiling metrics")
|
option(ENABLE_PROFILING "Enable detailed profiling metrics")
|
||||||
option(ENABLE_IMGUI "Enable imgui plugin")
|
|
||||||
|
|
||||||
option(TEST_DATA "Enable tests that require game data")
|
option(TEST_DATA "Enable tests that require game data")
|
||||||
|
|
||||||
|
2
external/CMakeLists.txt
vendored
2
external/CMakeLists.txt
vendored
@ -2,6 +2,4 @@ if(ENABLE_PROFILING)
|
|||||||
add_subdirectory(microprofile)
|
add_subdirectory(microprofile)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ENABLE_IMGUI)
|
|
||||||
add_subdirectory(imgui)
|
add_subdirectory(imgui)
|
||||||
endif()
|
|
||||||
|
@ -71,7 +71,6 @@ target_link_libraries(librwgame
|
|||||||
SDL2::SDL2
|
SDL2::SDL2
|
||||||
)
|
)
|
||||||
|
|
||||||
if(ENABLE_IMGUI)
|
|
||||||
target_compile_definitions(librwgame
|
target_compile_definitions(librwgame
|
||||||
PUBLIC
|
PUBLIC
|
||||||
RW_IMGUI
|
RW_IMGUI
|
||||||
@ -81,7 +80,6 @@ if(ENABLE_IMGUI)
|
|||||||
PUBLIC
|
PUBLIC
|
||||||
imgui::sdl_gl3
|
imgui::sdl_gl3
|
||||||
)
|
)
|
||||||
endif()
|
|
||||||
|
|
||||||
add_executable(rwgame
|
add_executable(rwgame
|
||||||
main.cpp
|
main.cpp
|
||||||
|
@ -4,8 +4,6 @@
|
|||||||
#include <objects/CharacterObject.hpp>
|
#include <objects/CharacterObject.hpp>
|
||||||
#include <objects/VehicleObject.hpp>
|
#include <objects/VehicleObject.hpp>
|
||||||
|
|
||||||
#ifdef RW_IMGUI
|
|
||||||
|
|
||||||
#include "RWGame.hpp"
|
#include "RWGame.hpp"
|
||||||
|
|
||||||
#include <imgui.h>
|
#include <imgui.h>
|
||||||
@ -204,24 +202,3 @@ void RWImGui::endFrame(const ViewCamera& camera) {
|
|||||||
ImGui::Render();
|
ImGui::Render();
|
||||||
ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());
|
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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user