1 2 3 4 5 6 7 8 9 10 11 12 13
/// Minimal example use pel::Events; struct Example; impl Events for Example {} fn main() { pel::new() // it is mandatory to set desired texture size .texture_size(1, 1) // event loop requires user type that implements pel::Events .run(Example); }