Animation.pkg 959 B

1234567891011121314151617181920212223
  1. $#include "Animation.h"
  2. /// Skeletal animation resource.
  3. class Animation : public Resource
  4. {
  5. public:
  6. /// Return animation name.
  7. const String& GetAnimationName() const { return animationName_; }
  8. /// Return animation name hash.
  9. StringHash GetAnimationNameHash() const { return animationNameHash_; }
  10. /// Return animation length.
  11. float GetLength() const { return length_; }
  12. /// Return number of animation tracks.
  13. unsigned GetNumTracks() const { return tracks_.Size(); }
  14. /// Return animation track by index.
  15. const AnimationTrack* GetTrack(unsigned index) const;
  16. /// Return animation track by bone name.
  17. const AnimationTrack* GetTrack(const String& name) const;
  18. /// Return animation track by bone name hash.
  19. const AnimationTrack* GetTrack(StringHash nameHash) const;
  20. /// Return number of animation trigger points.
  21. unsigned GetNumTriggers() const {return triggers_.Size(); }
  22. };