Trait veloren_voxygen_anim::Skeleton
source · pub trait Skeleton: Send + Sync + 'static {
type Attr;
type Body;
const BONE_COUNT: usize;
// Required method
fn compute_matrices_inner(
&self,
base_mat: Mat4<f32>,
buf: &mut [FigureBoneData; 16],
body: Self::Body,
) -> Offsets;
// Provided method
fn compute_matrices(
&self,
base_mat: Mat4<f32>,
buf: &mut [FigureBoneData; 16],
body: Self::Body,
) -> Offsets { ... }
}
Required Associated Types§
Required Associated Constants§
const BONE_COUNT: usize
Required Methods§
fn compute_matrices_inner( &self, base_mat: Mat4<f32>, buf: &mut [FigureBoneData; 16], body: Self::Body, ) -> Offsets
Provided Methods§
fn compute_matrices( &self, base_mat: Mat4<f32>, buf: &mut [FigureBoneData; 16], body: Self::Body, ) -> Offsets
Object Safety§
This trait is not object safe.