class MorphShapes

Contains a set of morph channels used for morph target animation.

Each morph channel contains one or multiple shapes which are blended together depending on frame animation. Each channel is then additively blended together depending on some weight.

Public

Methods

GetChannelCount

u32 GetChannelCount() const

Returns the number of available morph channels.

GetChannel

SPtr<MorphChannel> GetChannel(u32 index) const

Returns the morph channel at the specified index.

GetChannels

const Vector<SPtr<MorphChannel>> &GetChannels() const

Returns a list of all morph channels in the morph animation.

GetVertexCount

u32 GetVertexCount() const

Returns the number of vertices per morph shape.

staticCreate

static SPtr<MorphShapes> Create(const Vector<SPtr<MorphChannel>> &channels, u32 numVertices)

Creates a new set of morph shapes.

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const

Returns an interface you can use to access class' Run Time Type Information.

staticCreateEmpty

static SPtr<MorphShapes> CreateEmpty()

Creates MorphShapes with no data.

You must populate its data manually.

Private

Constructors

MorphShapes

MorphShapes() = default

MorphShapes

MorphShapes(const Vector<SPtr<MorphChannel>> &channels, u32 numVertices)

Fields

mChannels

Vector<SPtr<MorphChannel>> mChannels

mVertexCount

u32 mVertexCount