pub fn run<S, E>(ctx: Context, event_loop: EventLoop<()>, state: S) -> !where
S: EventHandler<E> + 'static,
E: Debug,
Expand description
Runs the game’s main loop, calling event callbacks on the given state object as events occur.
It does not try to do any type of framerate limiting. See the
documentation for the timer
module for more info.