JK2eA
 All Classes Functions Variables
MorphTargetController.h
00001 #pragma once
00002 
00003 #include "Controller.h"
00004 #include "MorphTargetMesh.h"
00005 
00013 class CMorphTargetController : public CController {
00014 private:
00015         bool*   m_mt_active;    
00016         float*  m_mt_weights;   
00017         int             m_size;                 
00018 public:
00024         CMorphTargetController(const std::string& name, CMorphTargetMesh& mesh);
00028         virtual ~CMorphTargetController();
00029 
00035         virtual void Update(float dt);
00036 
00041         void ActivateMorphTarget(const int id);
00046         void DeactivateMorphTarget(const int id);
00047 
00052         inline float* GetWeights() { return m_mt_weights; }
00057         inline int        GetSize() { return m_size; }
00058 
00059         CNTRL_CLASS_NAME(CMorphTargetController);
00060 };
00061