12#ifndef CAL_MORPHTARGETMIXER_H
13#define CAL_MORPHTARGETMIXER_H
16#include "cal3d/global.h"
17#include <cal3d/coremorphkeyframe.h>
18#include <cal3d/coreanimatedmorph.h>
29 bool blend(
int id,
float weight,
float delayIn,
float delayOut,
bool looping);
31 bool clear(
int id,
float delay);
41 void update(
float deltaTime);
43 float CalcKeyframeWeight(
const std::vector<CalCoreMorphKeyframe> &keyframes,
float elapsedTime);
62 std::vector<MorphAnimData> mAnimList;
The core animatedMorph class.
Definition coreanimatedmorph.h:37
float getDuration(int id) const
Get the duration of a morph target.
Definition morphtargetmixer.cpp:336
const std::string & getMorphName(int id) const
Get the name of a morph target animation.
Definition morphtargetmixer.cpp:253
int getKeyframeCount(int id) const
Get the number of keyframes for a morph target.
Definition morphtargetmixer.cpp:307
bool blend(int id, float weight, float delayIn, float delayOut, bool looping)
Interpolates the morph target weights based on an animation.
Definition morphtargetmixer.cpp:111
void update(float deltaTime)
Updates all morph targets.
Definition morphtargetmixer.cpp:375
int getMorphTargetCount() const
Returns the number of morph targets this morph target mixer mixes.
Definition morphtargetmixer.cpp:459
CalMorphTargetMixer(CalModel *model)
Constructs the morph target mixer instance.
Definition morphtargetmixer.cpp:34
int getTrackCount(int id) const
Get the number of tracks for a morph target.
Definition morphtargetmixer.cpp:271
bool copy(const CalMorphTargetMixer &inOther)
Copy data from one mixer (for the same core model) to another.
Definition morphtargetmixer.cpp:353
float getCurrentWeight(int id) const
Get the weight of a morph target.
Definition morphtargetmixer.cpp:230
const std::list< CalCoreMorphTrack > & getMorphTracks(int id) const
Get the tracks for a morph target.
Definition morphtargetmixer.cpp:289
bool clear(int id, float delay)
Fades a morph target out.
Definition morphtargetmixer.cpp:167
bool manualBlend(int id, float weight, float time)
Interpolates the morph target weights based on an animation.
Definition morphtargetmixer.cpp:53