We have a C++ application that uses imgui extensively with very good results. We want to offer our users the possibility to write plugins in python, and to provide own controls for the plugins we would prefer that rendering of the plugin controls is done with the already active imgui context. Python has various imgui bindings (e.g. pyimgui, dearpygui). Is it possible to pass the already existing C++ imgui context to Python and draw windows, draw controls there, so they all show up in the common ui (in the same swap, with the same font ... etc)?
Asked
Active
Viewed 171 times
0
-
I think pyimgui can do this using [set_current_context](https://pyimgui.readthedocs.io/en/latest/reference/imgui.core.html?highlight=context#imgui.core.set_current_context). – thedemons Nov 13 '22 at 19:28
-
Thanks for the hint. I think i will set up da test project to see if it does what we want – Heiner Nov 15 '22 at 11:15