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§

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

§

type Attr = SkeletonAttr

§

type Body = Body

source§

const BONE_COUNT: usize = 9usize

source§

impl Skeleton for BirdLargeSkeleton

§

type Attr = SkeletonAttr

§

type Body = Body

source§

const BONE_COUNT: usize = 16usize

source§

impl Skeleton for BirdMediumSkeleton

§

type Attr = SkeletonAttr

§

type Body = Body

source§

const BONE_COUNT: usize = 9usize

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

§

type Attr = SkeletonAttr

§

type Body = Body

source§

const BONE_COUNT: usize = 7usize

source§

impl Skeleton for FishSmallSkeleton

§

type Attr = SkeletonAttr

§

type Body = Body

source§

const BONE_COUNT: usize = 4usize

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

§

type Attr = SkeletonAttr

§

type Body = Body

source§

const BONE_COUNT: usize = 1usize

source§

impl Skeleton for ObjectSkeleton

§

type Attr = SkeletonAttr

§

type Body = Body

source§

const BONE_COUNT: usize = 2usize

source§

impl Skeleton for PluginSkeleton

§

type Attr = SkeletonAttr

§

type Body = Body

source§

const BONE_COUNT: usize = 16usize

source§

impl Skeleton for QuadrupedLowSkeleton

§

type Attr = SkeletonAttr

§

type Body = Body

source§

const BONE_COUNT: usize = 16usize

source§

impl Skeleton for QuadrupedMediumSkeleton

§

type Attr = SkeletonAttr

§

type Body = Body

source§

const BONE_COUNT: usize = 15usize

source§

impl Skeleton for QuadrupedSmallSkeleton

§

type Attr = SkeletonAttr

§

type Body = Body

source§

const BONE_COUNT: usize = 7usize

source§

impl Skeleton for ShipSkeleton

§

type Attr = SkeletonAttr

§

type Body = Body

source§

const BONE_COUNT: usize = 4usize

source§

impl Skeleton for TheropodSkeleton

§

type Attr = SkeletonAttr

§

type Body = Body

source§

const BONE_COUNT: usize = 13usize