vrust 0.0.1

VRust game engine
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::super::render::engine::RenderEngine;
use super::super::system::os::OsApplication;
use super::event::Event;

pub trait ApplicationTrait: Sized {
    fn new() -> Self;
    fn initialize(
        &mut self,
        _o: &'static mut OsApplication<Self>,
        _r: &'static mut RenderEngine<Self>,
    ) -> bool {
        return true;
    }
    fn on_event(&mut self, _e: Event) {}
    fn update(&mut self) -> bool;
    fn terminate(&mut self);
}