pub struct TileEntry {
pub w: u8,
pub h: u8,
pub cluster_index: u16,
}Expand description
Keeps track of a texture tile’s dimensions and location in the tile pixel buffer.
Fields§
§w: u8Width of the tile.
h: u8Height of the tile.
cluster_index: u16Index to the first cluster of the tile in the tile buffer. Each cluster is 1 byte.
Trait Implementations§
impl Copy for TileEntry
Auto Trait Implementations§
impl Freeze for TileEntry
impl RefUnwindSafe for TileEntry
impl Send for TileEntry
impl Sync for TileEntry
impl Unpin for TileEntry
impl UnwindSafe for TileEntry
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