Trait Animation

Source
pub trait Animation: Send + Sync {
    // Required methods
    fn set_progress(&mut self, progress: f32);
    fn get_progress(&self) -> f32;
    fn get_vertices(&self) -> Vec<[f32; 3]>;
    fn get_indices(&self) -> Indices;
    fn get_colors(&self) -> Vec<[f32; 4]>;
}

Required Methods§

Source

fn set_progress(&mut self, progress: f32)

Source

fn get_progress(&self) -> f32

Source

fn get_vertices(&self) -> Vec<[f32; 3]>

Source

fn get_indices(&self) -> Indices

Source

fn get_colors(&self) -> Vec<[f32; 4]>

Implementors§