- ImGuinZ
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.0dock (2024/08)
- Features
- Included Font Awesome Icon fonts.
- Included GLFW 3.3.9 static library
- Included SDL2/SDL3 libraries
- Inlcuded STB libraries (only stb_image)
- Available ImPlot (CImPlot) with
ImDrawIdx="unsigned int"
- Enabled Input method (IME) flag with
IMGUI_ENABLE_WIN32_DEFAULT_IME_FUNCTIONS
- Included Font Awesome Icon fonts.
- Windows10 OS or later
- Now using zig-windows-x86_64-0.14.0-dev.1569+b56a667ec.zip
Probably zig-windows-x86_64-0.14.0-dev.xxxx+yyyy... might be ok. (-:) - MSys2/MinGW basic commands (make, rm, cp, strip ...)
-
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
glfw_opengl3 / sdl2_opengl3 / sdl3_opengl3
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: Commet 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
- Git version 2.45.2.windows.1
- Make: GNU Make 4.4.1
- Zig: 0.14.0.dev... (zig cc: clang version 18.1.8)
- SDL2 ver.2.30.3
- SDL3 2024-08-04
Language | Project |
---|---|
Nim | ImGuin, Nimgl_test, Nim_implot |
Lua | LuaJITImGui |
Python | DearPyGui for 32bit WindowsOS Binary |
Zig, C lang. | Dear_Bindings_Build |
Zig | ImGuinZ |