pub struct SpriteDraw {}Expand description
A sprite prepared by the game for drawing (picnum already animated/rotated if desired).
Fields§
§x: f64§y: f64§z: f64§picnum: i32§cstat: u16§shade: i32§pal: u8§xrepeat: u8§yrepeat: u8§xoffset: i8§yoffset: i8§ang: f64§sector: i32§voxel: Option<u32>Voxel model index into Scene::voxels (drawn instead of the tile).
portal: u32Non-zero for sprites seen through a room-over-room portal: only drawn on pixels
that show that portal (see portal_id).
Trait Implementations§
Source§impl Clone for SpriteDraw
impl Clone for SpriteDraw
Source§fn clone(&self) -> SpriteDraw
fn clone(&self) -> SpriteDraw
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SpriteDraw
Source§impl Debug for SpriteDraw
impl Debug for SpriteDraw
Source§impl Default for SpriteDraw
impl Default for SpriteDraw
Source§fn default() -> SpriteDraw
fn default() -> SpriteDraw
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SpriteDraw
impl RefUnwindSafe for SpriteDraw
impl Send for SpriteDraw
impl Sync for SpriteDraw
impl Unpin for SpriteDraw
impl UnsafeUnpin for SpriteDraw
impl UnwindSafe for SpriteDraw
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more