pixels/examples/imgui-winit
Jay Oster cdcfe57868
Validate width and height inputs (#162)
* Validate width and height inputs

- Fixes #157

* Add window size check to `imgui-winit` demo

- There is really nothing better that can be done in this case.
- The surface, buffer, and world sizes must all be non-zero.
- A zero-length surface would (previously) panic in `wgpu`.
- A zero-length buffer would panic with the new assertions.
- A zero-length world would cause a divide-by-zero panic when drawing.
2021-05-08 17:26:21 -07:00
..
src Validate width and height inputs (#162) 2021-05-08 17:26:21 -07:00
Cargo.toml Update wgpu to 0.8 (#160) 2021-05-07 23:52:11 -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.