emoon / rust_minifb

Cross platfrom window and framebuffer crate for Rust
MIT License
1.04k stars 99 forks source link

Adding (optional) dear imgui support #93

Open emoon opened 5 years ago

emoon commented 5 years ago

As brought up here https://github.com/emoon/rust_minifb/issues/91

It would be possible to add optional dear-imgui support to minifb https://github.com/Gekkio/imgui-rs if this is something people would like to see.

The way it would work then is that the imgui elements would always been drawn on top of the input buffer. Also the requirement would be that imgui would only work when a 3D backend is used.

This is already the case on macOS but not on Linux and Windows. On Windows GDI is used (which in the end generates DirectX drawcalls) On Linux there is already OpenGL support in the works.

So I would like to hear what you think about this.

nicolasbauw commented 4 years ago

As I am myself an imgui user, I love the idea.