pub struct SkinnedPayload {
pub vertices: Vec<SkinnedVertex>,
pub indices: Vec<u16>,
pub joints: Vec<PayloadJoint>,
pub morphs: PayloadMorphs,
pub lods: Vec<(f32, Vec<u16>)>,
}Expand description
A fully deserialised skinned payload, including the optional morph and LOD blocks (empty when the payload carries none).
Fields§
§vertices: Vec<SkinnedVertex>Skinned vertices.
indices: Vec<u16>Triangle indices into vertices.
joints: Vec<PayloadJoint>The bind-pose skeleton, parents before children.
morphs: PayloadMorphsMorph-target block; empty when the mesh has no morphs.
lods: Vec<(f32, Vec<u16>)>LOD slices past LOD0; empty when the mesh declares one level.
Trait Implementations§
Source§impl Clone for SkinnedPayload
impl Clone for SkinnedPayload
Source§fn clone(&self) -> SkinnedPayload
fn clone(&self) -> SkinnedPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SkinnedPayload
impl Debug for SkinnedPayload
Source§impl Default for SkinnedPayload
impl Default for SkinnedPayload
Source§fn default() -> SkinnedPayload
fn default() -> SkinnedPayload
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SkinnedPayload
impl RefUnwindSafe for SkinnedPayload
impl Send for SkinnedPayload
impl Sync for SkinnedPayload
impl Unpin for SkinnedPayload
impl UnsafeUnpin for SkinnedPayload
impl UnwindSafe for SkinnedPayload
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