- ImGuinZ
This project aims to simply and easily build Dear ImGui examples with Zig language using CImGui / CImPlot as first step.
ImGui version 1.90.8 (2024/06)
- Windows10 OS
- Use Zig: 0.12.0
- Zig 0.13.0 ? (Compiling is ok so far)
- MSys/MinGW basic commands (make, rm, cp ...)
-
Download this project.
git clone --recurse-submodules https://github.com/dinau/imguinz
-
Go to one of the examples folder,
cd imguinz/examples/zig_glfw_opengl3
-
Build and Run
make run
or
zig build --release=fast run
GLFW | SDL2 | SDL3 |
---|---|---|
zig_glfw_opengl3 | zig_sdl2_opengl3 | zig_sdl3_opengl3 |
GLFW |
---|
zig_glfw_opengl3_jp |
GLFW |
---|
zig_glfw_opengl3_image_load |
Image file captured would be saved in current folder.
Image can be saved as JPEG / PNG / BMP / TGA
file.
GLFW |
---|
zig_glfw_opengl3_implot |
Now work in progress.
pwd
imPlotDemo
make run # or zig build --release=fast run
Open build.zig
in each example folder and enable option line as follows,
... snip ...
exe.subsystem = .Windows; // Hide console window
... snip ...
and execute make
.
- 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
- clang version 18.1.6
- gcc.exe (Rev2, Built by MSYS2 project) 13.2.0
- git version 2.41.0.windows.3
- make: GNU Make 4.3
- Python 3.12.3
- zig: 0.12.0 (zig cc: clang version 17.0.6)
- SDL2 ver.2.30.3
- SDL3 2024-06-02
Language | Project |
---|---|
Nim | Imguin, Nimgl_test, Nim_implot |
Lua | LuaJITImGui |
Python | DearPyGui for 32bit WindowsOS Binary |
Zig, C lang. | Dear_Bindings_Build |
Zig | ImGuinZ |