pub struct AnimRefF32 { /* private fields */ }Expand description
Animatable reference holding a default value and animation link
Holds both a constant default value and a link to keyframed animation data. If animId == 0, the property is not animated — use initValue as a constant. Otherwise, resolve through STC_.animIds to locate keyframe data. Total size depends on sizeof(T): 12 + 2*sizeof(T) + 4 bytes.
@tparam T The value type (f32, Vector3f, Quaternion, ColorBGRA, Extent, etc.)
Implementations§
Source§impl AnimRefF32
impl AnimRefF32
Sourcepub fn interp_type(&self) -> u16
pub fn interp_type(&self) -> u16
Interpolation: 0=none/step, 1=linear, 2=hermite, 3=bezier
pub fn set_interp_type(&mut self, value: u16)
pub fn set_flags(&mut self, value: u16)
Sourcepub fn anim_id(&self) -> u32
pub fn anim_id(&self) -> u32
Animation identifier (links to STC animation data; 0=not animated)
pub fn set_anim_id(&mut self, value: u32)
Sourcepub fn init_value(&self) -> f32
pub fn init_value(&self) -> f32
Initial/default value (used when not animated)
pub fn set_init_value(&mut self, value: f32)
Sourcepub fn null_value(&self) -> f32
pub fn null_value(&self) -> f32
Null/reset value
pub fn set_null_value(&mut self, value: f32)
pub fn set_unused(&mut self, value: i32)
Trait Implementations§
Source§impl Debug for AnimRefF32
impl Debug for AnimRefF32
Source§impl Default for AnimRefF32
impl Default for AnimRefF32
Source§impl Drop for AnimRefF32
impl Drop for AnimRefF32
impl Send for AnimRefF32
Auto Trait Implementations§
impl !Sync for AnimRefF32
impl Freeze for AnimRefF32
impl RefUnwindSafe for AnimRefF32
impl Unpin for AnimRefF32
impl UnsafeUnpin for AnimRefF32
impl UnwindSafe for AnimRefF32
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