pub struct Animation { /* private fields */ }
Expand description
An animation containing keyframes for various properties
Implementations§
Source§impl Animation
impl Animation
Sourcepub fn as_raw(&self) -> *const aiAnimation
pub fn as_raw(&self) -> *const aiAnimation
Get the raw animation pointer
Sourcepub fn ticks_per_second(&self) -> f64
pub fn ticks_per_second(&self) -> f64
Get the ticks per second for this animation
Sourcepub fn duration_in_seconds(&self) -> f64
pub fn duration_in_seconds(&self) -> f64
Get the duration in seconds
Sourcepub fn num_channels(&self) -> usize
pub fn num_channels(&self) -> usize
Get the number of node animation channels
Sourcepub fn channel(&self, index: usize) -> Option<NodeAnimation>
pub fn channel(&self, index: usize) -> Option<NodeAnimation>
Get a node animation channel by index
Sourcepub fn channels(&self) -> NodeAnimationIterator ⓘ
pub fn channels(&self) -> NodeAnimationIterator ⓘ
Get an iterator over all node animation channels
Sourcepub fn num_mesh_channels(&self) -> usize
pub fn num_mesh_channels(&self) -> usize
Get the number of mesh animation channels (vertex anim via aiAnimMesh)
Sourcepub fn mesh_channel(&self, index: usize) -> Option<MeshAnimation>
pub fn mesh_channel(&self, index: usize) -> Option<MeshAnimation>
Get a mesh animation channel
Sourcepub fn mesh_channels(&self) -> MeshAnimationIterator ⓘ
pub fn mesh_channels(&self) -> MeshAnimationIterator ⓘ
Iterate mesh animation channels
Sourcepub fn num_morph_mesh_channels(&self) -> usize
pub fn num_morph_mesh_channels(&self) -> usize
Get the number of morph mesh animation channels
Sourcepub fn morph_mesh_channel(&self, index: usize) -> Option<MorphMeshAnimation>
pub fn morph_mesh_channel(&self, index: usize) -> Option<MorphMeshAnimation>
Get a morph mesh animation channel
Sourcepub fn morph_mesh_channels(&self) -> MorphMeshAnimationIterator ⓘ
pub fn morph_mesh_channels(&self) -> MorphMeshAnimationIterator ⓘ
Iterate morph mesh animation channels
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Animation
impl RefUnwindSafe for Animation
impl Unpin for Animation
impl UnwindSafe for Animation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more