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.
ImGui version 1.90.8 (2024/06)
Download this project.
git clone --recurse-submodules 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 | SDL2 | SDL3 |
---|---|---|---|
C lang. | glfw_opengl3 | sdl2_opengl3 | sdl3_opengl3 |
Zig lang. | zig_glfw_opengl3 | zig_sdl2_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
.
For instance,
pwd
glfw_opengl3
make cleanall
make gen
make run
Note: Except Zig lang. examples.
Artifacts are generated into ../libs/cimgui
folder.
For instance,
pwd
glfw_opengl3
make cleanobjs
make TC=clang # or TC=zigcc
Compiling with TC=zigcc
may link dynamic library at this time.
Note: Except Zig lang. examples.
Language | Project |
---|---|
Nim | Imguin, Nimgl_test, Nim_implot |
Lua | LuaJITImGui |
Python | DearPyGui for 32bit WindowsOS Binary |