- 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.6dock (2024/12)
-
OS: Windows and Linux
-
Frontends and Backends
GLFW SDL2 SDL3 OpenGL3
backendv v v -
Features
- Included Font Awesome Icon fonts.
- Included GLFW 3.3.9 static library (for Windows)
- Included SDL2/SDL3 libraries (for Windows)
- Included STB libraries (only stb_image) for Load / Save images
- Available ImPlot (CImPlot) with
ImDrawIdx="unsigned int"
- Enabled Input method (IME) flag with
IMGUI_ENABLE_WIN32_DEFAULT_IME_FUNCTIONS
- Included Font Awesome Icon fonts.
-
Zig version confirmed
- Windows: zig-windows-x86_64-0.14.0-dev.2625
- Linux: zig-linux-x86_64-0.14.0-dev.2625
-
WindowsOS
- Windows10 or later
- MSys2/MinGW basic commands (make, rm, cp, strip ...)
-
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
- Windows11 (main)
- Make: GNU Make 4.4.1
- SDL2 ver.2.30.8
- SDL3 3.1.3
- Git version 2.46.0.windows.1
- Linux Mint 22 (sub)
- Make: GNU Make 4.3
- SDL2 ver.2.30.0
- Git version 2.43.0
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) |