Add 'zimgui/' from commit 'a053e62c779b1ba303e21330b266a1b32d26b27a'

git-subtree-dir: zimgui
git-subtree-mainline: b0d2e231b0
git-subtree-split: a053e62c77
This commit is contained in:
2025-08-04 22:14:47 -04:00
8 changed files with 212 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
- Export `IMGUI_PATH` environment variable to downloaded package.
- cd `generator` directory
- `luajit generator.lua 'zig cc' 'comments internal noimstrv' glfw vulkan`
- compile cimgui/cimgui.cpp, imgui/*.cpp, imgui/backends/*.cpp all together
- install cimgui/cimgui.h, imgui/*.h, cimgui/generator/output/cimgui_impl.h
Zig needs to access cimgui.h and cimgui_impl.h
Set a custom loader. Instructions in imgui_impl_vulkan.h
- cdefine `IMGUI_IMPL_VULKAN_NO_PROTOTYPES`
- call `ImGui_ImplVulkan_LoadFunctions` before `ImGui_ImplVulkan_Init`
not quite sure yet what the role of `ImGui_ImplVulkanH_Window.UseDynamicRendering` is