pub struct BakedSheet {
pub frame_px: u32,
pub width: u32,
pub height: u32,
pub rgba: Vec<u8>,
pub views: usize,
pub anim: usize,
}Expand description
A finished sprite sheet. With anim_frames = 1 a horizontal strip of
views() images; otherwise a grid of views() rows (one per azimuth)
× anim() columns (one per motion sample), row-major in memory.
Fields§
§frame_px: u32§width: u32§height: u32§rgba: Vec<u8>§views: usizeAzimuth views baked (= sheet rows when animated).
anim: usizeMotion samples per view (1 = still strip).
Implementations§
Source§impl BakedSheet
impl BakedSheet
pub fn views(&self) -> usize
pub fn anim(&self) -> usize
Trait Implementations§
Source§impl Clone for BakedSheet
impl Clone for BakedSheet
Source§fn clone(&self) -> BakedSheet
fn clone(&self) -> BakedSheet
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 moreSource§impl Debug for BakedSheet
impl Debug for BakedSheet
Source§impl PartialEq for BakedSheet
impl PartialEq for BakedSheet
Source§fn eq(&self, other: &BakedSheet) -> bool
fn eq(&self, other: &BakedSheet) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BakedSheet
Auto Trait Implementations§
impl Freeze for BakedSheet
impl RefUnwindSafe for BakedSheet
impl Send for BakedSheet
impl Sync for BakedSheet
impl Unpin for BakedSheet
impl UnsafeUnpin for BakedSheet
impl UnwindSafe for BakedSheet
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