You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although I´m using it avidly Im not sure I understand how imgui is integrated into bgfx-python. I´m quite interested in using the docking features from imgui which seem to be available in packages such as pyimgui and dear pygui.
Is what is included in bgfx-python a wrapper around a specific version of imgui? Would it be possible (for me) to somehow use either pyimgui or pygui with bgfx-python. Any nudge in a direction on where to start would be greatly appreciated!
Thanks @SuperSimon81 for the kind words 🤗
I integrated the same ImGUI linked with the original BGFX repository. Reason is that it requires quite a lot of code to pipe ImGUI's backbuffer to BGFX one. You can se how it is done looking at dependencies/bgfx/examples/common/imgui/imgui.cpp.
The new cppyy bindings provides you with a JIT C++ compiler and all the necessary headers to access BGFX's internals, but I'm not sure about a specific ImGUI Python binding.
I've looked at pyimgui in the past as I've found it more pythonic, especially for handling primitive types like ImFloat, but I've found that I needed to heavily modify the source code to access the required internals.
I´ve been fiddling with this a bit and concluded I´m out of my depth. I´ve settled on trying to make ImGui::Image work in bgfx-python. As far as I can tell the function is defined in dependencies/bgfx/examples/common/imgui/imgui.h using inline, so I thought it would be available. But ImGui.image or ImGui.Image throws an error in bgfx-python. Am I going about this the wrong way?
Activity
fbertola commentedon Jun 21, 2021
Thanks @SuperSimon81 for the kind words 🤗
I integrated the same ImGUI linked with the original BGFX repository. Reason is that it requires quite a lot of code to pipe ImGUI's backbuffer to BGFX one. You can se how it is done looking at
dependencies/bgfx/examples/common/imgui/imgui.cpp.The new
cppyybindings provides you with a JIT C++ compiler and all the necessary headers to access BGFX's internals, but I'm not sure about a specific ImGUI Python binding.I've looked at pyimgui in the past as I've found it more pythonic, especially for handling primitive types like
ImFloat, but I've found that I needed to heavily modify the source code to access the required internals.Hope this will help you a bit!
simonthalen commentedon Jun 22, 2021
Thank you. I will look into it. I´ll let you know if I make any significant progress
simonthalen commentedon Jun 25, 2021
I´ve been fiddling with this a bit and concluded I´m out of my depth. I´ve settled on trying to make
ImGui::Imagework in bgfx-python. As far as I can tell the function is defined independencies/bgfx/examples/common/imgui/imgui.husing inline, so I thought it would be available. ButImGui.imageorImGui.Imagethrows an error in bgfx-python. Am I going about this the wrong way?