refactoring
This commit is contained in:
parent
3a92f526a0
commit
552a36a146
7 changed files with 282 additions and 130 deletions
8
moonhare_engine/src/game_plugin.rs
Normal file
8
moonhare_engine/src/game_plugin.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
use glium::Frame;
|
||||
|
||||
pub trait GamePlugin {
|
||||
fn init(&mut self);
|
||||
fn update(&mut self);
|
||||
fn render(&mut self, target: &mut Frame);
|
||||
fn cleanup(&mut self);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue