pixels/examples/imgui-winit/README.md
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

16 lines
322 B
Markdown

# Dear-ImGui Example
![Dear-ImGui Example](../../img/imgui-winit.png)
Minimal example with `imgui` and `winit`.
## Running
```bash
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.