Trait amethyst_animation::AnimationSampling[][src]

pub trait AnimationSampling: Send + Sync + 'static + for<'b> ApplyData<'b> {
    type Primitive: InterpolationPrimitive + Clone + Copy + Send + Sync + 'static;
    type Channel: Debug + Clone + Hash + Eq + Send + Sync + 'static;
    fn apply_sample<'a>(
        &mut self,
        channel: &Self::Channel,
        data: &Self::Primitive,
        extra: &Self::ApplyData
    );
fn current_sample<'a>(
        &self,
        channel: &Self::Channel,
        extra: &Self::ApplyData
    ) -> Self::Primitive;
fn default_primitive(channel: &Self::Channel) -> Self::Primitive;
fn blend_method(&self, channel: &Self::Channel) -> Option<BlendMethod>; }

Master trait used to define animation sampling on a component

Associated Types

The interpolation primitive

An independent grouping or type of functions that operate on attributes of a component

For example, translation, scaling and rotation are transformation channels independent of each other, even though they all mutate coordinates of a component.

Required Methods

Apply a sample to a channel

Get the current sample for a channel

Get default primitive

Get blend config

Implementations on Foreign Types

impl AnimationSampling for Material
[src]

impl AnimationSampling for Transform
[src]

Implementors