Skip to main content

Animation

Trait Animation 

Source
pub trait Animation<'res> {
    // Required method
    fn into_action(
        self,
        mesh_pool: Rc<RefCell<MeshPool>>,
        scene: Rc<RefCell<Scene>>,
    ) -> Action<'res>;
}

Required Methods§

Source

fn into_action( self, mesh_pool: Rc<RefCell<MeshPool>>, scene: Rc<RefCell<Scene>>, ) -> Action<'res>

Implementors§

Source§

impl Animation<'static> for MoveTo

Source§

impl Animation<'static> for RotateAxisAngle

Source§

impl Animation<'static> for ScaleBy

Source§

impl Animation<'static> for ScaleTo

Source§

impl<'res, M, Update, Start, Stop, C> Animation<'res> for MeshAnimation<'res, M, Update, Start, Stop, C>
where M: MeshLike + 'static, Update: FnMut(&mut M, &mut RenderInstance, f32, f32) + 'res, Start: FnMut() + 'res, Stop: FnMut() + 'res, C: AnimCurve + 'static,

Source§

impl<M> Animation<'static> for MatrixTransform<M>

Source§

impl<Trans, M> Animation<'static> for PointwiseTransform<Trans, M>
where Trans: Fn(&[f32; 3]) -> [f32; 3] + 'static, M: Transformable + 'static, M::Intermediate: Interpolatable + InstanceUpdater,