Timing Module Update
- Implement a new timing module - Utilize the new timing module in glium platform implementation for frame limiting and fixed engine updates timing.
This commit is contained in:
parent
5e8897c271
commit
84ab3a26b1
9 changed files with 221 additions and 11 deletions
|
|
@ -7,7 +7,8 @@ pub trait EngineTrait {
|
|||
type PlatformCtx: Clone;
|
||||
fn new() -> Self;
|
||||
fn initialize(&mut self, platform_context: Self::PlatformCtx);
|
||||
fn update(&mut self, platform_context: Self::PlatformCtx);
|
||||
fn frame_update(&mut self, platform_context: Self::PlatformCtx);
|
||||
fn fixed_update(&mut self, platform_context: Self::PlatformCtx);
|
||||
fn handle_event(&mut self, platform_context: Self::PlatformCtx);
|
||||
fn current_scene_mut(&mut self) -> &mut Scene;
|
||||
fn get_debug_ui_buffer(&self) -> Rc<RefCell<DebugUIBuffer>>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue