main_game_loop 0.6.1

A tool collection for building a winit game loop
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::event::{Event, EventLoopTarget};
use winit::event_loop::ControlFlow;

//

pub trait Runnable {
    fn event(&mut self, event: Event, target: &EventLoopTarget, control: &mut ControlFlow);

    fn draw(&mut self);
}