Struct crankstart::GameRunner
source · pub struct GameRunner<T: Game> { /* private fields */ }
Implementations§
source§impl<T: 'static + Game> GameRunner<T>
impl<T: 'static + Game> GameRunner<T>
pub fn new(game: Option<GamePtr<T>>, playdate: Playdate) -> Self
pub fn update(&mut self)
pub fn update_sprite(&mut self, sprite: *mut LCDSprite)
pub fn draw_sprite( &mut self, sprite: *mut LCDSprite, bounds: PDRect, draw_rect: PDRect )
pub fn playdate_sprite(&self) -> *const playdate_sprite
Auto Trait Implementations§
impl<T> RefUnwindSafe for GameRunner<T>where T: RefUnwindSafe,
impl<T> !Send for GameRunner<T>
impl<T> !Sync for GameRunner<T>
impl<T> Unpin for GameRunner<T>
impl<T> UnwindSafe for GameRunner<T>where T: UnwindSafe,
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