3 ms·
> Note that C bindings (cimgui) are auto-generated, you can use its json/lua output to generate bindings for other languages. note about this. the C++ imgui li
by uryga 6y ago
> Note that C bindings (cimgui) are auto-generated, you can use its json/lua output to generate bindings for other languages.
note about this. the C++ imgui library uses stuff like out-arguments (pass a pointer that gets filled out with a result) almost everywhere, which makes wrapping it with a pointer-less language non-trivial – in python, you want an interface that just returns a tuple and you'll have to code that part up manually anyway (or come up with a really clever generator)
[source: i've contributed to pyimgui, another imgui wrapper, and we looked at auto-generating wrappers at some point, but decided against it because of how much work you'd have to do on top to make it "pythonic". i think they're looking at that again now though.]
- blt 6y agoSWIG can sometimes help with this.