Skip to content

Commit 88de38a

Browse files
committed
Modularize imiv: split app into multiple sources
Refactor the imiv viewer by extracting large portions of imiv_app into separate, modular source/header files and adding missing components. New files added under src/imiv include imiv_actions, imiv_frame, imiv_navigation, imiv_test_engine, imiv_types, imiv_ui, imiv_viewer and several Vulkan helpers (imiv_vulkan_runtime/Setup/Texture). CMakeLists updated to read OIIO_IMIV_NFD_ROOT from the environment and to include the new source files in the build. Also minor updates to shader sources. This organizes the codebase for better separation of concerns (actions, UI, navigation, Vulkan runtime, test engine) and prepares for easier maintenance and further development.
1 parent c6ff4f8 commit 88de38a

21 files changed

Lines changed: 10179 additions & 8642 deletions

src/imiv/CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set (OIIO_IMIV_IMGUI_ROOT "${PROJECT_SOURCE_DIR}/../imgui" CACHE PATH
66
"Path to Dear ImGui repository checkout used by imiv")
77
set (OIIO_IMIV_TEST_ENGINE_ROOT "${PROJECT_SOURCE_DIR}/../imgui_test_engine" CACHE PATH
88
"Path to Dear ImGui Test Engine repository checkout used by imiv tests")
9-
set (OIIO_IMIV_NFD_ROOT "/mnt/f/GH/oiio-builder/developer/nativefiledialog-extended" CACHE PATH
9+
set (OIIO_IMIV_NFD_ROOT "$ENV{OIIO_IMIV_NFD_ROOT}" CACHE PATH
1010
"Path hint for nativefiledialog-extended source/build/install root used by imiv")
1111
set (OIIO_IMIV_NFD_INCLUDE_DIR "" CACHE PATH
1212
"Optional explicit include directory containing nfd.h")
@@ -62,8 +62,17 @@ endif ()
6262
record_build_dependency (ImGui FOUND)
6363

6464
set (_imiv_core_sources
65+
imiv_actions.cpp
6566
imiv_app.cpp
6667
imiv_file_dialog.cpp
68+
imiv_frame.cpp
69+
imiv_navigation.cpp
70+
imiv_ui.cpp
71+
imiv_viewer.cpp
72+
imiv_vulkan_setup.cpp
73+
imiv_vulkan_runtime.cpp
74+
imiv_vulkan_texture.cpp
75+
imiv_test_engine.cpp
6776
imiv_main.cpp)
6877

6978
set (_imiv_shader_src "${CMAKE_CURRENT_SOURCE_DIR}/shaders/imiv_upload_to_rgba.comp")

0 commit comments

Comments
 (0)