pixels/examples/imgui-winit
Jay Oster 11dca72955
Add Dear ImGui example (#116)
* Add Dear ImGui example

- Closes #90

* Change argument order to match `render_with`

* Remove unnecessary borrow

* Refactor error messages

* Add a space

* Refactor Gui field privacy

* Add a menu bar and allow the about window to be closed

- The local bool is necessary because the menu bar closures are not allowed to borrow `self` for mutable access while `imgui::Ui<'ui>` is alive.
- The token-based menu bar lifetime is even more verbose than this.
2020-09-18 03:57:28 -07:00
..
src Add Dear ImGui example (#116) 2020-09-18 03:57:28 -07:00
Cargo.toml Add Dear ImGui example (#116) 2020-09-18 03:57:28 -07:00
README.md Add Dear ImGui example (#116) 2020-09-18 03:57:28 -07:00

Dear-ImGui Example

Dear-ImGui Example

Minimal example with imgui and winit.

Running

cargo run --release --package imgui-winit

About

This example is based on minimal-winit, and extends it with imgui to render custom GUI elements over your pixel frame buffer.