ynuwenhof / imferris

Internal DirectX 11 ImGui menu written in Rust
Apache License 2.0
5 stars 0 forks source link

Utilize imgui-dx11-renderer #1

Open vars1ty opened 1 year ago

vars1ty commented 1 year ago

First I'd like to say nice project, works great as a base for drawing internal UIs in DX11 applications. One concern I have though is the fact that it's using interop, which is fine if you're just compiling it on Windows, but becomes a huge nightmare to deal with when compiling from Linux/Mac OS to Windows.

Would it be possible to look into https://crates.io/crates/imgui-dx11-renderer and possibly skip the interop part? Thanks in advance!

ynuwenhof commented 1 year ago

Hey,

Thank you for your kind words, I can definitely get behind the idea of minimizing the amount of manual interop.

I noticed that the imgui-dx11-renderer crate hasn't been updated for a while and still relies on an older version of ImGui and probably requires some updating.

In order to completely remove the usage of manual interop one would have to replace imgui_impl_win32 platform with a Rust reimplementation too.

If I have some time, I might try to rewrite the platform in Rust and make the renderer work with a newer version of ImGui.

Kind Regards!