2020-03-04 18:28:07 +01:00
|
|
|
use affection::*;
|
|
|
|
|
|
|
|
struct Example {
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Callbacks for Example {
|
|
|
|
fn load_state() -> Self {
|
|
|
|
Example {}
|
|
|
|
}
|
|
|
|
fn handle_event(&mut self, ev: Event) {}
|
|
|
|
fn update(&mut self) {}
|
2020-03-04 18:34:02 +01:00
|
|
|
fn draw(&self, graphics: &mut Graphics) {}
|
2020-03-04 18:28:07 +01:00
|
|
|
fn clean_up(self) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn main() {
|
|
|
|
run::<Example>(Config::default());
|
|
|
|
}
|