pub struct SpriteFrame { /* private fields */ }Expand description
One frame of sprites, and the textures they use. It keeps its textures from frame to frame: compose into the same one every frame.
Implementations§
Source§impl SpriteFrame
impl SpriteFrame
Sourcepub fn sprites(&self) -> &[f32]
pub fn sprites(&self) -> &[f32]
The sprites, SPRITE_FLOATS numbers each, in drawing order.
pub fn sprite_count(&self) -> usize
Sourcepub fn uploads(&self) -> &[TextureUpload]
pub fn uploads(&self) -> &[TextureUpload]
Textures first used this frame.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpriteFrame
impl RefUnwindSafe for SpriteFrame
impl Send for SpriteFrame
impl Sync for SpriteFrame
impl Unpin for SpriteFrame
impl UnsafeUnpin for SpriteFrame
impl UnwindSafe for SpriteFrame
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