pub struct ButteryEngine {
pub state: ButteryEngineState,
pub game: Box<dyn ButteryGame>,
}Fields§
§state: ButteryEngineState§game: Box<dyn ButteryGame>Implementations§
Source§impl ButteryEngine
impl ButteryEngine
pub fn run( windowing_system: Box<dyn ButteryWindowingSystem>, game: Box<dyn ButteryGame>, ) -> Result<()>
pub fn on_init(&mut self)
pub fn on_update(&mut self)
pub fn on_key_event(&mut self, key_event: KeyEvent)
pub fn calc_delta_time(&mut self)
Auto Trait Implementations§
impl Freeze for ButteryEngine
impl !RefUnwindSafe for ButteryEngine
impl !Send for ButteryEngine
impl !Sync for ButteryEngine
impl Unpin for ButteryEngine
impl UnsafeUnpin for ButteryEngine
impl !UnwindSafe for ButteryEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more