affection-rs/examples/example00.rs

19 lines
332 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(&mut self, graphics: &mut Graphics) {}
fn clean_up(self) {}
}
pub fn main() {
run::<Example>(Config::default());
}