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.
Sourcepub fn sprite_count(&self) -> usize
pub fn sprite_count(&self) -> usize
Number of sprites in the frame.
Sourcepub fn uploads(&self) -> &[TextureUpload]
pub fn uploads(&self) -> &[TextureUpload]
Textures first used this frame.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SpriteFrame
impl !Send for SpriteFrame
impl !Sync for SpriteFrame
impl !UnwindSafe for SpriteFrame
impl Freeze for SpriteFrame
impl Unpin for SpriteFrame
impl UnsafeUnpin 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