{"repo":"zig-gamedev/zgui","free":true,"listed":false,"github":"https://github.com/zig-gamedev/zgui","clone":"git clone https://github.com/zig-gamedev/zgui.git","description":"Zig build package and bindings for https://github.com/ocornut/imgui and optional extras.","language":"C++","stars":157,"topics":["dearimgui","gamedev","gui","zig","imgui"],"license":"MIT","category":"game-templates","readme_excerpt":"zgui Zig build package and bindings for Dear Imgui & extras. Easy to use, hand-crafted API with default arguments, named parameters and Zig style text formatting. Here is a simple sample application, and here is a full one. Features Most public dear imgui API exposed All memory allocations go through user provided Zig allocator DrawList API for vector graphics, text rendering and custom widgets Test engine API for automatic testing Plot API for advanced data visualizations Gizmo API for gizmo Node editor API for node based stuff Knobs API for knobs Versions ImGui 1.92.1-docking ImGui test engine 1.91.8 ImPlot O.17 ImGuizmo 1.92.5 WIP ImGuiNodeEditor O.9.3 imgui-knobs main - commit 8a43bf7b31c4166ec50f3a52c382c2cc66a91516 Getting started Example build.zig : Now in your code you may import and use zgui : Building a shared library If your project spans multiple zig modules that both use ImGui, such as an exe paired with a dll, you may want to build the zgui dependencies ( zgui pkg.zgui c cpp ) as a shared library. This can be enabled with the shared build option. Then, in build.zig , use zgui pkg.link to link zgui to all the modules that use ImGui. When built this way, the ImGui context will be located in the shared library. However, the zgui zig code (which is compiled separately into each module) requires its own memory buffer which has to be initialized separately with initNoContext . In your executable: In your shared library: DrawList API Test Engine API Zig wraper for ImGU","default_branch":null,"files":null,"tree":[],"storefront":"/r/zig-gamedev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/zig-gamedev/zgui/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}