|
JK2eA
|
00001 #pragma once 00002 00007 class CSkeletalAnimationChannel { 00008 private: 00009 00010 std::vector<std::pair<float*, CControllerSkeletalAnimation*>> m_animations; 00011 typedef std::vector<std::pair<float*, CControllerSkeletalAnimation*>>::iterator t_AnimIter; 00012 00013 CSkeletalAnimationMixer* m_mixer; 00014 int m_blend_in; 00015 int m_blend_out; 00016 int m_blend_deactivation; 00017 public: 00021 CSkeletalAnimationChannel(); 00025 ~CSkeletalAnimationChannel(); 00026 00027 00031 void SetMixer(CSkeletalAnimationMixer* mixer); 00032 00039 bool ActivateAnimation(CControllerSkeletalAnimation *animation); 00040 00046 void AddAnimation(CControllerSkeletalAnimation *animation, char priority); 00047 00052 void Deactivate(); 00053 00059 void Update(float dt); 00060 00064 void Release(); 00065 }; 00066
1.8.0