pub struct DrawArguments { /* private fields */ }
Expand description
Arguments passed for each draw of the game
Implementations§
Source§impl DrawArguments
impl DrawArguments
pub fn new(width: i32, height: i32, step_offset: f32) -> Self
Sourcepub fn width(&self) -> i32
pub fn width(&self) -> i32
The horizontal width in pixels of the display area being used by Romy
Sourcepub fn height(&self) -> i32
pub fn height(&self) -> i32
The vertical height in pixels of the display area being used by Romy
Sourcepub fn step_offset(&self) -> f32
pub fn step_offset(&self) -> f32
The fraction of time since the last step call in a range of 0.0 - 1.0. 0.0 no time has passed, 0.5 = half way to the next step, 0.99 = almost all the way to the next step.
Trait Implementations§
Source§impl Debug for DrawArguments
impl Debug for DrawArguments
Source§impl<'de> Deserialize<'de> for DrawArguments
impl<'de> Deserialize<'de> for DrawArguments
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DrawArguments
impl RefUnwindSafe for DrawArguments
impl Send for DrawArguments
impl Sync for DrawArguments
impl Unpin for DrawArguments
impl UnwindSafe for DrawArguments
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