pub struct DrawData { /* private fields */ }Expand description
Contextual data for the DRAW instruction
Implementations§
Source§impl DrawData
impl DrawData
Sourcepub fn new(new_vx: Register, new_vy: Register, new_h: u8) -> DrawData
pub fn new(new_vx: Register, new_vy: Register, new_h: u8) -> DrawData
Constructs a new DrawData instance
§Arguments
new_vx- The register containing the x-coordinatenew_vy- The register containing the y-coordinatenew_h- The height of the sprite to draw
§Panics
This method will panic if new_vx or new_vy refers to
the I register.
§Returns
A new DrawData instance with the given properties
Auto Trait Implementations§
impl Freeze for DrawData
impl RefUnwindSafe for DrawData
impl Send for DrawData
impl Sync for DrawData
impl Unpin for DrawData
impl UnwindSafe for DrawData
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