pub struct AnimRefVector3f { /* 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 AnimRefVector3f
impl AnimRefVector3f
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) -> Vector3f
pub fn init_value(&self) -> Vector3f
Initial/default value (used when not animated)
pub fn set_init_value(&mut self, value: Vector3f)
Sourcepub fn null_value(&self) -> Vector3f
pub fn null_value(&self) -> Vector3f
Null/reset value
pub fn set_null_value(&mut self, value: Vector3f)
pub fn set_unused(&mut self, value: i32)
Trait Implementations§
Source§impl Debug for AnimRefVector3f
impl Debug for AnimRefVector3f
Source§impl Default for AnimRefVector3f
impl Default for AnimRefVector3f
Source§impl Drop for AnimRefVector3f
impl Drop for AnimRefVector3f
impl Send for AnimRefVector3f
Auto Trait Implementations§
impl !Sync for AnimRefVector3f
impl Freeze for AnimRefVector3f
impl RefUnwindSafe for AnimRefVector3f
impl Unpin for AnimRefVector3f
impl UnsafeUnpin for AnimRefVector3f
impl UnwindSafe for AnimRefVector3f
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