FFI rust bindings for the Dear ImGui library. Makes use of the cimgui - Github cimgui is a thing c-api wrapper generated for the imgui. This wrapper has been configured to make use of the SDL2 backend primarily, but others can be used as well.
These bindings are generated using the documentation from https://rust-lang.github.io/rust-bindgen/library-usage.html
Some changes are applied to cimgui, which can be found from https://github.com/Velho/cimgui Changes are related to the generator and additional backends used.
| version | |
|---|---|
| Dear ImGui | 1.89.5 |
Project was tested using,
| MSVC | 17 (2022) |
| CMake | 3.25.0 |
| LLVM | 16.0.4 |
Linux TBD
-
Clone git repository
git clone libcimgui-sys -
Update git submodules
git submodule update --init --recursive -
Build submodules
-
By default the project is configured to be built under deps/cimgui/.build
-
Configure the project using CMake
cmake -E make_directory deps/cimgui/.buildcmake -S deps/cimgui/ -B deps/cimgui/.build- Build cimgui
cmake --build deps/cimgui/.build -
-
Build project
cargo build
To generate the cImGui bindings, run the bindgen tool against wrapper header.
bindgen .\wrapper.h -o .\src\bindings.rs