HexaEngine / Hexa.NET.ImGui

A .NET wrapper for the Dear ImGui.
Other
81 stars 7 forks source link

Monogame backend #28

Open MartelementAyy opened 2 days ago

MartelementAyy commented 2 days ago

Hello, thanks you for your great bindings. I managed to pull out an implementation of ImGuiRenderer (based on the "official" ImGuiRenderer from ImGui.NET)

I'm nowhere near an expert on this topic, but it might be interesting to maybe add it to your examples ?

I might drop the code here if anyone interested in making a pull request and/or optimize it.

Sadly, config flag for viewports enable doesn't seem to work, but dockspace yes.

{5D38FD43-0D09-493E-A0CC-45760E8E8ED0}

JunaMeinhold commented 2 days ago

Hi, cool thing. But you might be able to use the native backends if you can get your hands on the internal device and hwnd of xna/fna/monogame.

(I really recommend using them, because sometimes ImGui introduces breaking changes/new features in backends and those are hard to maintain)

MartelementAyy commented 2 days ago

Thanks, that is a good suggestion I will look into it and return here if I managed to find something