11dca72955
* 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.
16 lines
322 B
Markdown
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.
|