Expand description
Integration between egui
and wgpu
API.
This module provides EguiWgpu
, a convenience wrapper that bundles
together:
egui::Context
for running your UIcrate::State
for event and input handlingPainter
for rendering usingwgpu
§Usage
Typical usage is to:
- Create an
EguiWgpu
for your SDL2 window - Pass SDL2 events to
EguiWgpu::on_event
- Call
EguiWgpu::run
providing our UI function - Paint egui output via
EguiWgpu::paint
Re-exports§
pub use painter::*;