pub fn start(
window_attributes: WindowAttributes,
fps: u32,
max_frame_time: Duration,
app: impl App + 'static
) -> Result<()>Expand description
Start the application.
Depending on the platform, this function may not return (see https://docs.rs/winit/latest/winit/event_loop/struct.EventLoop.html#method.run_app).
On web uses https://docs.rs/winit/latest/wasm32-unknown-unknown/winit/platform/web/trait.EventLoopExtWebSys.html#tymethod.spawn_app instead of run_app().