|
发表于 2010-3-16 16:28:16
|
显示全部楼层
你觉得我的回答有问题吗???另外,请你看看osgCal::Model 类吧~~~~~~~
- class CAL3D_API CalMixer : public CalAbstractMixer
- {
- public:
- CalMixer(CalModel* pModel);
- virtual ~CalMixer();
- virtual bool isDefaultMixer() { return true; }
- bool blendCycle(int id, float weight, float delay);
- bool clearCycle(int id, float delay);
- bool executeAction(int id, float delayIn, float delayOut, float weightTarget = 1.0f, bool autoLock=false);
- bool removeAction(int id);
- virtual void updateAnimation(float deltaTime);
- virtual void updateSkeleton();
- float getAnimationTime();
- float getAnimationDuration();
- void setAnimationTime(float animationTime);
- void setTimeFactor(float timeFactor);
- float getTimeFactor();
- CalModel *getCalModel();
- std::vector<CalAnimation *> &getAnimationVector();
- std::list<CalAnimationAction *> &getAnimationActionList();
- std::list<CalAnimationCycle *> &getAnimationCycle();
-
- protected:
- CalModel *m_pModel;
- std::vector<CalAnimation *> m_vectorAnimation;
- std::list<CalAnimationAction *> m_listAnimationAction;
- std::list<CalAnimationCycle *> m_listAnimationCycle;
- float m_animationTime;
- float m_animationDuration;
- float m_timeFactor;
- };
- #endif
复制代码 |
|