Struct oxygengine_composite_renderer::mesh_animation_asset_protocol::MeshAnimationSequence
source · [−]pub struct MeshAnimationSequence {
pub submesh_alpha: HashMap<usize, Phase>,
pub submesh_order: HashMap<usize, Phase>,
pub bone_position_x: HashMap<String, Phase>,
pub bone_position_y: HashMap<String, Phase>,
pub bone_rotation: HashMap<String, Phase>,
pub bone_scale_x: HashMap<String, Phase>,
pub bone_scale_y: HashMap<String, Phase>,
/* private fields */
}Fields
submesh_alpha: HashMap<usize, Phase>submesh_order: HashMap<usize, Phase>bone_position_x: HashMap<String, Phase>bone_position_y: HashMap<String, Phase>bone_rotation: HashMap<String, Phase>bone_scale_x: HashMap<String, Phase>bone_scale_y: HashMap<String, Phase>Implementations
sourceimpl MeshAnimationSequence
impl MeshAnimationSequence
pub fn initialize(&mut self)
pub fn length(&self) -> Scalar
pub fn sample_submesh_alpha(
&self,
time: Scalar,
index: usize,
current: Scalar
) -> Scalar
pub fn sample_submesh_order(
&self,
time: Scalar,
index: usize,
current: Scalar
) -> Scalar
pub fn sample_bone_position_x(
&self,
time: Scalar,
name: &str,
current: Scalar
) -> Scalar
pub fn sample_bone_position_y(
&self,
time: Scalar,
name: &str,
current: Scalar
) -> Scalar
pub fn sample_bone_rotation(
&self,
time: Scalar,
name: &str,
current: Scalar
) -> Scalar
pub fn sample_bone_scale_x(
&self,
time: Scalar,
name: &str,
current: Scalar
) -> Scalar
pub fn sample_bone_scale_y(
&self,
time: Scalar,
name: &str,
current: Scalar
) -> Scalar
Trait Implementations
sourceimpl Clone for MeshAnimationSequence
impl Clone for MeshAnimationSequence
sourcefn clone(&self) -> MeshAnimationSequence
fn clone(&self) -> MeshAnimationSequence
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for MeshAnimationSequence
impl Debug for MeshAnimationSequence
sourceimpl<'de> Deserialize<'de> for MeshAnimationSequence
impl<'de> Deserialize<'de> for MeshAnimationSequence
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for MeshAnimationSequence
impl Serialize for MeshAnimationSequence
Auto Trait Implementations
impl RefUnwindSafe for MeshAnimationSequence
impl Send for MeshAnimationSequence
impl Sync for MeshAnimationSequence
impl Unpin for MeshAnimationSequence
impl UnwindSafe for MeshAnimationSequence
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more