Struct mold2d::sprite::AnimatedSprite
[−]
[src]
pub struct AnimatedSprite { /* fields omitted */ }
Represents an animated sprite with multiple frames
Methods
impl AnimatedSprite
[src]
fn with_fps(frames: Vec<Sprite>, fps: f64) -> AnimatedSprite
fn add_time(&mut self, elapsed: f64)
Updates the animated sprite with the elapsed time
Trait Implementations
impl Clone for AnimatedSprite
[src]
fn clone(&self) -> AnimatedSprite
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more