sokol-zig-imgui-sample

April 19, 2026 ยท View on GitHub

build

Sample project for using Dear ImGui with the Sokol Zig bindings.

Note

the Emscripten version currently requires Zig 0.17.0-dev, the native version works with 0.16.0

On macOS, Windows and Linux just run:

zig build run

To build and run the web version:

zig build --release=small -Dtarget=wasm32-emscripten run

...or for the Dear ImGui docking branch:

zig build -Ddocking run

zig build --release=small -Ddocking -Dtarget=wasm32-emscripten run