Expand description
preview — native winit + wgpu sibling window that wisp renders into.
The [[bin]] target (src/main.rs) opens a real OS window via winit,
hands its wgpu surface to [wisp::application::Application::from_wgpu],
and pumps the [playback::Player] into it. The library half exposes the
pure helpers (math, headless render harness) so [[example]] and tests
can exercise the same render path without a window.
Functions§
- aspect_
fit_ scale - Letterbox/pillarbox scale that fits a
video_w × video_hsource into asurface_w × surface_hviewport, expressed as aVec2for the wisp sprite’s transformscale.