dinau/imguinz
Using Dear Imgui (CImGui), ImPlot (CImPlot) with Zig language zig-0.14 or later
This project aims to simply and easily build Dear ImGui (CImGui) / ImPlot (CImPlot) examples in Zig language with less external dependencies.
ImGui / CImGui version 1.91.6dock (2024/12)
OS: Windows and Linux
Frontends and Backends
GLFW | SDL2 | SDL3 | |
---|---|---|---|
OpenGL3 backend |
v | v | v |
Features
ImDrawIdx="unsigned int"
IMGUI_ENABLE_WIN32_DEFAULT_IME_FUNCTIONS
Zig version confirmed
WindowsOS
Linux OS (Ubuntu / Debian families)
$ sudo apt install xorg-dev libopengl-dev libgl1-mesa-dev
and for glfw3 and sdl2,
$ sudo apt install libglfw3 libglfw3-dev
$ sudo apt install libsdl2-dev
Download this project.
git clone --recurse-submodules https://github.com/dinau/imguinz
Go to one of the examples folder,
cd imguinz/examples/glfw_opengl3
Build and Run
make run # or zig build --release=fast run
Image load and magnifying glass
glfw_opengl3.zig
sdl2_opengl3.zig
sdl3_opengl3.zig
iconFontViewer.zig and magnifying glass
Image load / save and magnifying glass.
Image file captured would be saved in .the folder ./zig-out/bin
.
Image can be saved as JPEG / PNG / BMP / TGA
file.
Now work in progress.
pwd
examples/imPlotDemo
make run # or zig build --release=fast run
Open build.zig
in each example folder and
Hide console window: Default,
Show console window: Comment out this line as follows,
... snip ...
//exe.subsystem = .Windows; // Hide console window
... snip ...
and rebuild example.
SDL3 Build-SDL3
https://github.com/mmozeiko/build-sdl3/releases
https://github.com/mmozeiko/build-sdl3
SDL3 Build-SDL3-Win32
https://github.com/JBetz/build-sdl3-win32/releases
https://github.com/JBetz/build-sdl3-win32
Language | Project | |
---|---|---|
Nim | Compiler | ImGuin, Nimgl_test, Nim_implot |
Lua | Script | LuaJITImGui |
Zig, C lang. | Compiler | Dear_Bindings_Build |
Zig | Compiler | ImGuinZ |
NeLua | Compiler | NeLuaImGui |
Python | Script | DearPyGui for 32bit WindowsOS Binary |
Language | Project | |
---|---|---|
Nim | Compiler | Nim-Platformer |
LuaJIT | Script | LuaJIT-Platformer |
Nelua | Compiler | NeLua-Platformer |
Zig | Compiler | Zig-Platformer (WIP) |