dinau/dear_bindings_build
ImGui: Simple dear_bindings build project
This project aims to simply and easily build ImGui examples with C language and Zig language using Dear_Bindings as first step.
Dear ImGui version 1.92.2b (2025/08)
No dependence on external zig libraries
No download external libraries
Included ImGui / GLFW / SDL3 / STB_image libraries in this project
Using IconFont FontAwewsome 6
Image load/save
Frontends and Backends
GLFW | SDL3 | |
---|---|---|
OpenGL3 backend |
v | v |
Library name / C lang. wrapper
ImGui / Dear_Bindings
ImGui-Knobs / CImGui-Knobs (2025/07)
ImGuiFileDialog / CImGuiFileDialog (2025/07)
ImGui_Toggle / CimGui_Toggle (2025/07)
ImSpinner / CImSpinner (2025/07)
ImPlot / CImPlot
ImPlot3d / CImPlot3d
ImNodes / CImNodes
ImGuizmo / CImGuizmo
ImGuiColorTextEdit / cimCTE
ImGui_Markdown
GCC compiler
example | Windows | Linux |
---|---|---|
glfw_opengl3 | v | |
glfw_opengl3_image_load | v | |
glfw_opengl3_image_save | v | |
glfw_opengl3_jp | v | |
sdl3_opengl3 | v |
Zig compiler
example | Windows | Linux |
---|---|---|
zig_glfw_opengl3 | v | v |
zig_glfw_opengl3_image_load | v | v |
zig_iconfontviewer | v | v |
zig_imfiledialog | v | v |
zig_imkonbs | v | v |
zig_imspinner | v | v |
zig_imtoggle | v | v |
zig_sdl3_opengl3 | v |
Download this project.
git clone https://github.com/dinau/dear_bindings_build
Go to one of the examples folder,
cd dear_bindings_build/examples/glfw_opengl3
Build and Run
make run
Language | GLFW | SDL3 |
---|---|---|
C lang. | glfw_opengl3 | sdl3_opengl3 |
Zig lang. | zig_glfw_opengl3 | zig_sdl3_opengl3 |
Language | GLFW |
---|---|
C lang. | glfw_opengl3_jp |
Language | GLFW |
---|---|
C lang. | glfw_opengl3_image_load |
Zig lang. | zig_glfw_opengl3_image_load |
Language | GLFW |
---|---|
C lang. | glfw_opengl3_image_save |
Zig lang. | zig_glfw_opengl3_image_load |
Image file captured would be saved in current folder.
Image can be saved as JPEG / PNG / BMP / TGA
file.
Zig lang. examples
Open build.zig
in each example folder and enable option line as follows,
... snip ...
exe.subsystem = .Windows; // Hide console window
... snip ...
and execute make
.
C lang. examples
Open Makefile
in each example folder and change option as follows,
... snip ...
HIDE_CONSOLE_WINDOW = true
... snip ...
and execute make
.
https://github.com/libsdl-org/SDL
https://github.com/libsdl-org/SDL/releases
Language [^order] | Project | |
---|---|---|
Lua | Script | LuaJITImGui |
NeLua | Compiler | NeLuaImGui |
Nim | Compiler | ImGuin, Nimgl_test, Nim_implot |
Python | Script | DearPyGui for 32bit WindowsOS Binary |
Ruby | Script | igRuby_Examples |
Zig, C lang. | Compiler | Dear_Bindings_Build |
Zig | Compiler | ImGuinZ |
Language [^order] | SDL | Project | |
---|---|---|---|
LuaJIT | Script | SDL2 | LuaJIT-Platformer |
Nelua | Compiler | SDL2 | NeLua-Platformer |
Nim | Compiler | SDL3 / SDL2 | Nim-Platformer-sdl2/ Nim-Platformer-sdl3 |
Ruby | Script | SDL3 | Ruby-Platformer |
Zig | Compiler | SDL3 / SDL2 | Zig-Platformer |
[^order]: Alphabectial order