pub struct M2TrackResolver;Expand description
Resolver for M2Track animation data This loads the actual keyframe data from M2Array offsets
Implementations§
Source§impl M2TrackResolver
impl M2TrackResolver
Sourcepub fn resolve_timestamps<R: Read + Seek>(
reader: &mut R,
track: &M2Track<impl Clone>,
) -> Result<Vec<u32>>
pub fn resolve_timestamps<R: Read + Seek>( reader: &mut R, track: &M2Track<impl Clone>, ) -> Result<Vec<u32>>
Resolve timestamp data for a track
Sourcepub fn resolve_vec3_values<R: Read + Seek>(
reader: &mut R,
track: &M2TrackVec3,
) -> Result<Vec<C3Vector>>
pub fn resolve_vec3_values<R: Read + Seek>( reader: &mut R, track: &M2TrackVec3, ) -> Result<Vec<C3Vector>>
Resolve Vec3 track values (translation/scale)
Sourcepub fn resolve_quat_values<R: Read + Seek>(
reader: &mut R,
track: &M2TrackQuat,
) -> Result<Vec<M2CompQuat>>
pub fn resolve_quat_values<R: Read + Seek>( reader: &mut R, track: &M2TrackQuat, ) -> Result<Vec<M2CompQuat>>
Resolve quaternion track values (rotation)
Auto Trait Implementations§
impl Freeze for M2TrackResolver
impl RefUnwindSafe for M2TrackResolver
impl Send for M2TrackResolver
impl Sync for M2TrackResolver
impl Unpin for M2TrackResolver
impl UnsafeUnpin for M2TrackResolver
impl UnwindSafe for M2TrackResolver
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more