pub struct TrackU32 { /* private fields */ }Expand description
Generic animation track with keyframe data
Tracks store animation data as a series of keyframes. The interpolation type determines how values between keyframes are calculated.
@tparam T The value type (f32, Vector3f, Vector4f, u32, etc.)
Implementations§
Source§impl TrackU32
impl TrackU32
pub fn set_is_used(&mut self, value: bool)
Sourcepub fn interpolation_type(&self) -> InterpolationType
pub fn interpolation_type(&self) -> InterpolationType
Interpolation type
pub fn set_interpolation_type(&mut self, value: InterpolationType)
Sourcepub fn global_sequence_id(&self) -> u32
pub fn global_sequence_id(&self) -> u32
Global sequence ID if applicable
pub fn set_global_sequence_id(&mut self, value: u32)
pub fn set_key_count(&mut self, value: usize)
Sourcepub fn timestamps(&self) -> &[u32]
pub fn timestamps(&self) -> &[u32]
Keyframe timestamps (in frames)
Zero-copy view of the underlying std::vector.
Sourcepub fn timestamps_mut(&mut self) -> &mut [u32]
pub fn timestamps_mut(&mut self) -> &mut [u32]
Zero-copy mutable view. Resize first — the borrow forbids it after.
pub fn set_timestamps(&mut self, values: &[u32])
pub fn resize_timestamps(&mut self, count: usize)
Sourcepub fn keys_mut(&mut self) -> &mut [u32]
pub fn keys_mut(&mut self) -> &mut [u32]
Zero-copy mutable view. Resize first — the borrow forbids it after.
pub fn set_keys(&mut self, values: &[u32])
pub fn resize_keys(&mut self, count: usize)
Trait Implementations§
impl Send for TrackU32
Auto Trait Implementations§
impl !Sync for TrackU32
impl Freeze for TrackU32
impl RefUnwindSafe for TrackU32
impl Unpin for TrackU32
impl UnsafeUnpin for TrackU32
impl UnwindSafe for TrackU32
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