affection-rs/examples/example00.rs

22 lines
384 B
Rust

use affection::*;
struct Example {
}
impl Callbacks for Example {
fn load_state() -> Self {
Example {}
}
fn handle_event(&mut self, ev: Event) {}
fn update(&mut self) {}
fn draw(&self, graphics: &mut Graphics) {}
fn clean_up(self) {}
fn do_next_step(&self) -> bool {
true
}
}
pub fn main() {
run::<Example>(Config::default());
}