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§

Required Methods§

source

fn compute_matrices_inner( &self, base_mat: Mat4<f32>, buf: &mut [FigureBoneData; 16], body: Self::Body ) -> Offsets

Provided Methods§

source

fn compute_matrices( &self, base_mat: Mat4<f32>, buf: &mut [FigureBoneData; 16], body: Self::Body ) -> Offsets

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Skeleton for ArthropodSkeleton

§

type Attr = SkeletonAttr

§

type Body = Body

source§

const BONE_COUNT: usize = 16usize

source§

impl Skeleton for BipedLargeSkeleton

§

type Attr = SkeletonAttr

§

type Body = Body

source§

const BONE_COUNT: usize = 16usize

source§

impl Skeleton for BipedSmallSkeleton

source§

impl Skeleton for BirdLargeSkeleton

§

type Attr = SkeletonAttr

§

type Body = Body

source§

const BONE_COUNT: usize = 16usize

source§

impl Skeleton for BirdMediumSkeleton

source§

impl Skeleton for CharacterSkeleton

§

type Attr = SkeletonAttr

§

type Body = Body

source§

const BONE_COUNT: usize = 16usize

source§

impl Skeleton for CrustaceanSkeleton

§

type Attr = SkeletonAttr

§

type Body = Body

source§

const BONE_COUNT: usize = 15usize

source§

impl Skeleton for DragonSkeleton

§

type Attr = SkeletonAttr

§

type Body = Body

source§

const BONE_COUNT: usize = 15usize

source§

impl Skeleton for FishMediumSkeleton

source§

impl Skeleton for FishSmallSkeleton

source§

impl Skeleton for FixtureSkeleton

§

type Attr = SkeletonAttr

§

type Body = ()

source§

const BONE_COUNT: usize = 1usize

source§

impl Skeleton for GolemSkeleton

§

type Attr = SkeletonAttr

§

type Body = Body

source§

const BONE_COUNT: usize = 12usize

source§

impl Skeleton for ItemDropSkeleton

source§

impl Skeleton for ObjectSkeleton

source§

impl Skeleton for QuadrupedLowSkeleton

§

type Attr = SkeletonAttr

§

type Body = Body

source§

const BONE_COUNT: usize = 10usize

source§

impl Skeleton for QuadrupedMediumSkeleton

§

type Attr = SkeletonAttr

§

type Body = Body

source§

const BONE_COUNT: usize = 15usize

source§

impl Skeleton for QuadrupedSmallSkeleton

source§

impl Skeleton for ShipSkeleton

source§

impl Skeleton for TheropodSkeleton

§

type Attr = SkeletonAttr

§

type Body = Body

source§

const BONE_COUNT: usize = 13usize