11#ifndef CAL_MORPHTARGETMIXER_H
12#define CAL_MORPHTARGETMIXER_H
15#include "cal3d/global.h"
27 bool blend(
int id,
float weight,
float delay);
28 bool clear(
int id,
float delay);
32 void update(
float deltaTime);
35 std::vector<float> m_vectorCurrentWeight;
36 std::vector<float> m_vectorEndWeight;
37 std::vector<float> m_vectorDuration;
void update(float deltaTime)
Updates all morph targets.
Definition morphtargetmixer.cpp:158
CalMorphTargetMixer(CalModel *model)
Constructs the morph target mixer instance.
Definition morphtargetmixer.cpp:35
float getCurrentWeightBase()
Get the weight of the base vertices.
Definition morphtargetmixer.cpp:137
bool blend(int id, float weight, float delay)
Interpolates the weight of a morph target.
Definition morphtargetmixer.cpp:77
float getCurrentWeight(int id)
Get the weight of a morph target.
Definition morphtargetmixer.cpp:122
int getMorphTargetCount()
Returns the number of morph targets this morph target mixer mixes.
Definition morphtargetmixer.cpp:211
bool clear(int id, float delay)
Fades a morph target out.
Definition morphtargetmixer.cpp:103