pub type Advance = Box<dyn FnMut(&mut World, u32, f32, (u32, u32))>;Expand description
Advances a scene’s behaviour by one frame.
frame counts the frames the scene has drawn; the scenes that animate
through a fixed sequence loop it, so a windowed scene keeps moving after
the sequence that produced its snapshots ends. delta is the seconds since
the previous frame. size is the render target’s size in physical pixels,
which a scene reads here rather than capturing the size it was built at: a
camera whose projection has to follow the target’s aspect is re-aimed from
this every frame, so a window that changes shape never stretches the scene.
Aliased Type§
pub struct Advance(/* private fields */);