It contains a clone of zgui by michal-z along with custom bindings inspired by michal-z's wgpu bindings.
Clone this repo, copy it to root
of your project(root/lib
is more preferred)
In your build.zig file, add
exe.addPackage(zgui.zgui(exe));
exe.addPackage(zgui.glfw(exe)); //Make sure to add glfw as dependency (Prefered binding is mach_glfw)
exe.addPackage(zgui.opengl(exe)); //Add OpenGL support for Imgui
exe.addPackage(zgui.vulkan(exe)); //Add Vulkan support for Imgui
Please make sure the contents of this repository(excluding examples) are copied to examples/deps/zgui/
- OpenGL
- GLFW (mach-glfw)
- Vulkan
- DirectX 10
- DirectX 11
- more