pub struct ModelAnimation { /* private fields */ }
Expand description
Model animation
Implementations§
Source§impl ModelAnimation
impl ModelAnimation
Sourcepub fn frame_poses(&self) -> Vec<&[Transform]>
pub fn frame_poses(&self) -> Vec<&[Transform]>
Poses array by frame
Sourcepub fn frame_poses_mut(&mut self) -> Vec<&mut [Transform]>
pub fn frame_poses_mut(&mut self) -> Vec<&mut [Transform]>
Poses array by frame
Sourcepub fn as_raw(&self) -> &ModelAnimation
pub fn as_raw(&self) -> &ModelAnimation
Get the ‘raw’ ffi type Take caution when cloning so it doesn’t outlive the original
Sourcepub fn as_raw_mut(&mut self) -> &mut ModelAnimation
pub fn as_raw_mut(&mut self) -> &mut ModelAnimation
Get the ‘raw’ ffi type Take caution when cloning so it doesn’t outlive the original
Sourcepub unsafe fn from_raw(raw: ModelAnimation) -> Self
pub unsafe fn from_raw(raw: ModelAnimation) -> Self
Convert a ‘raw’ ffi object to a safe wrapper
§Safety
- The raw object must be correctly initialized
- The raw object should be unique. Otherwise, make sure its clones don’t outlive the newly created object.
Trait Implementations§
Source§impl Debug for ModelAnimation
impl Debug for ModelAnimation
Auto Trait Implementations§
impl Freeze for ModelAnimation
impl RefUnwindSafe for ModelAnimation
impl !Send for ModelAnimation
impl !Sync for ModelAnimation
impl Unpin for ModelAnimation
impl UnwindSafe for ModelAnimation
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