AnimatedModel.h 542 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef ANIMATEDMODEL_H
  2. #define ANIMATEDMODEL_H
  3. #include <Ogre.h>
  4. #include "../../common/DrawSkeleton.h"
  5. #include "../../common/OgreGenUtilites.h"
  6. struct ModelInfo
  7. {
  8. MeshData data;
  9. Ogre::String model_file;
  10. Ogre::String animation_file;
  11. std::vector<Ogre::String> animations;
  12. };
  13. class AnimatedModel
  14. {
  15. public:
  16. AnimatedModel();
  17. virtual ~AnimatedModel();
  18. Ogre::Entity* Export( const ModelInfo& info );
  19. private:
  20. Skeleton m_Skeleton;
  21. };
  22. #endif // ANIMATEDMODEL_H