imgui-rs-knobs icon indicating copy to clipboard operation
imgui-rs-knobs copied to clipboard

Possible to use from C++?

Open hippyau opened this issue 4 years ago • 3 comments

Your knob are most awesome,

not being familiar rust entirely, can this be called from C++, like as a library?

hippyau avatar Jan 06 '22 11:01 hippyau

Thank you!

It is possible to call Rust from C++ using CFFI, but I'm not sure how easy it would be with how this library in Rust vs C++ interface with imgui differently.

Since this library is a fairly small single file, I think it would probably be easier to port over to C++ than to call from C++.

If you do try to port it or part of it over, I'm happy to answer questions you may have. I have limited familiarity with C++, and have not used imgui from C++ though.

DGriffin91 avatar Jan 06 '22 19:01 DGriffin91

I've made a C++ port available here https://github.com/altschuler/imgui-knobs. Thanks @DGriffin91 for this work :)

altschuler avatar Apr 17 '22 14:04 altschuler

@altschuler Awesome!! I'll put a link in the readme.

DGriffin91 avatar Apr 17 '22 16:04 DGriffin91