Struct gltf::animation::Animation
[−]
[src]
pub struct Animation<'a> { /* fields omitted */ }
A keyframe animation.
Methods
impl<'a> Animation<'a>
[src]
fn new(gltf: &'a Gltf, index: usize, json: &'a Animation) -> Self
Constructs an Animation
.
fn as_json(&self) -> &Animation
Returns the internal JSON item.
fn index(&self) -> usize
Returns the internal JSON index.
fn extras(&self) -> &Extras
Optional application specific data.
fn channels(&self) -> Channels<'a>
An array of channels, each of which targets an animation's sampler at a node's property. Different channels of the same animation must not have equal targets.
fn samplers(&self) -> Samplers<'a>
An array of samplers that combine input and output accessors with an interpolation algorithm to define a keyframe graph (but not its target).
Trait Implementations
impl<'a> Clone for Animation<'a>
[src]
fn clone(&self) -> Animation<'a>
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