Files
zig-experiments/zig-cimgui-tasks.md

16 lines
630 B
Markdown

- 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