FYI if you’re using sokol-zig with the Dear ImGui bindings in GitHub - floooh/dcimgui: All in one Dear ImGui source distro for C++, C and Zig. you can now use the Dear ImGui Internal API (e.g. imgui_internal.h) and the docking branch from Zig code.
The minimal example at GitHub - floooh/sokol-zig-imgui-sample: Sample to use sokol-zig bindings with Dear ImGui has been updated (e.g. most importantly, check the build.zig: sokol-zig-imgui-sample/build.zig at main · floooh/sokol-zig-imgui-sample · GitHub).
To build the native version without and with docking support:
zig build run
zig build -Ddocking run
…and the same for the web (beware, this installs the Emscripten SDK into the global Zig cache):
zig build -Dtarget=wasm32-emscripten run
zig build -Dtarget=wasm32-emscripten -Ddocking run
Cheers!
PS: I didn’t actually use the internal API in the demo code though, if something’s broken, write a ticket here: GitHub - floooh/dcimgui: All in one Dear ImGui source distro for C++, C and Zig.