Skip to content

Commit

Permalink
Overlay: update to imgui 1.91.0
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Aug 21, 2024
1 parent a1f2c56 commit e55009b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Components/Overlay/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ list(APPEND HEADER_FILES
file(GLOB SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")

if(OGRE_BUILD_COMPONENT_OVERLAY_IMGUI)
set(IMGUI_DIR "${PROJECT_BINARY_DIR}/imgui-1.90.9" CACHE PATH "")
set(IMGUI_DIR "${PROJECT_BINARY_DIR}/imgui-1.91.0" CACHE PATH "")
if(NOT EXISTS ${IMGUI_DIR})
message(STATUS "Downloading imgui")
file(DOWNLOAD
https://github.com/ocornut/imgui/archive/v1.90.9.tar.gz
https://github.com/ocornut/imgui/archive/v1.91.0.tar.gz
${PROJECT_BINARY_DIR}/imgui.tar.gz)
execute_process(COMMAND ${CMAKE_COMMAND}
-E tar xf imgui.tar.gz WORKING_DIRECTORY ${PROJECT_BINARY_DIR})
Expand Down Expand Up @@ -77,6 +77,8 @@ if(OGRE_BUILD_COMPONENT_OVERLAY_IMGUI)
COMPILE_FLAGS "-Wno-cast-qual")
set_source_files_properties(${IMGUI_DIR}/imgui.cpp PROPERTIES
COMPILE_FLAGS "-Wno-cast-qual -Wno-unused-variable")
set_source_files_properties(${IMGUI_DIR}/imgui_demo.cpp PROPERTIES
COMPILE_FLAGS "-Wno-cast-qual")
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set_property(SOURCE ${IMGUI_DIR}/misc/freetype/imgui_freetype.cpp
APPEND PROPERTY COMPILE_OPTIONS "-Wno-unknown-warning-option")
Expand Down
2 changes: 2 additions & 0 deletions Components/Overlay/include/ImGui.i
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
%ignore ImGui::SetTooltipV;
%ignore ImGui::SetItemTooltipV;
%ignore ImGuiTextBuffer::appendfv;
%ignore ImGui::DebugLogV;
%ignore ImGuiSelectionBasicStorage;

%typemap(in) ImTextureID {
size_t argp;
Expand Down

0 comments on commit e55009b

Please sign in to comment.