pub struct SpriteRef {
pub sheet: SheetId,
pub width: i32,
pub height: i32,
pub uv: [f32; 4],
}Expand description
One sprite: its sheet, its size and its place on the sheet.
Fields§
§sheet: SheetIdThe sheet.
width: i32The width in pixels.
height: i32The height in pixels.
uv: [f32; 4]The texture coordinates on the sheet: u0, v0, u1, v1.
Trait Implementations§
impl Copy for SpriteRef
impl StructuralPartialEq for SpriteRef
Auto Trait Implementations§
impl Freeze for SpriteRef
impl RefUnwindSafe for SpriteRef
impl Send for SpriteRef
impl Sync for SpriteRef
impl Unpin for SpriteRef
impl UnsafeUnpin for SpriteRef
impl UnwindSafe for SpriteRef
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