pub fn start<A>(
fps: u32,
max_frame_time: Duration,
app_init: Box<AppInitFunc<A>>
) -> Result<()>where
A: App,
Expand description
Start the application.
app_init
will be called once during the next Event::Resumed
.
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()
.