mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 03:48:30 +01:00
f12e74c20fc32776431dd8cafa2466a76a0d8cbb

Add `struct` keywords where required. The messy part is the ImFont::Glyph inner struct, which needs to match the implementation in fontAtlas.cpp when building the library, but the namespace syntax is invalid C, so we have to use a macro to satisfy both use cases.
cimgui 
This is a thin c-api wrapper for the excellent C++ intermediate gui imgui. Most of the functions have wrapper counterparts now, missing stuff is added on a as-needed basis (PR welcome). This library is intended as a intermediate layer to be able to use imgui from other languages that can interface with C (like D - see D-binding)
Notes:
- currently this wrapper is based on version 1.51 of imgui
- does not compile with pure C compiler yet (for writing bindings in languages that are able to use C-ABI it is enough though, see D-bindings)
usage
- clone
- make using makefile on linux/osx
- use whatever method is in ImGui c++ namespace in the original imgui.h by prepending
ig
- methods have the same parameter list and return values (where possible)
example bindings based on cimgui
Languages
Lua
73.2%
C
16.1%
C++
9.6%
CMake
0.9%
Shell
0.1%