AnimatedModel.pkg 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. $#include "AnimatedModel.h"
  2. class AnimatedModel : public StaticModel
  3. {
  4. void SetModel(Model* model);
  5. AnimationState* AddAnimationState(Animation* animation);
  6. void RemoveAnimationState(Animation* animation);
  7. void RemoveAnimationState(const String animationName);
  8. void RemoveAnimationState(StringHash animationNameHash);
  9. void RemoveAnimationState(AnimationState* state);
  10. void RemoveAnimationState(unsigned index);
  11. void RemoveAllAnimationStates();
  12. void SetAnimationLodBias(float bias);
  13. void SetUpdateInvisible(bool enable);
  14. void SetMorphWeight(const String name, float weight);
  15. void SetMorphWeight(StringHash nameHash, float weight);
  16. void SetMorphWeight(unsigned index, float weight);
  17. void ResetMorphWeights();
  18. Skeleton& GetSkeleton();
  19. unsigned GetNumAnimationStates() const;
  20. AnimationState* GetAnimationState(Animation* animation) const;
  21. AnimationState* GetAnimationState(const String animationName) const;
  22. AnimationState* GetAnimationState(const StringHash animationNameHash) const;
  23. AnimationState* GetAnimationState(unsigned index) const;
  24. float GetAnimationLodBias() const;
  25. bool GetUpdateInvisible() const;
  26. unsigned GetNumMorphs() const;
  27. float GetMorphWeight(const String name) const;
  28. float GetMorphWeight(StringHash nameHash) const;
  29. float GetMorphWeight(unsigned index) const;
  30. bool IsMaster() const;
  31. tolua_property__get_set Model* model;
  32. tolua_readonly tolua_property__get_set Skeleton& skeleton;
  33. tolua_readonly tolua_property__get_set unsigned numAnimationStates;
  34. tolua_property__get_set float animationLodBias;
  35. tolua_property__get_set bool updateInvisible;
  36. tolua_readonly tolua_property__get_set unsigned numMorphs;
  37. tolua_readonly tolua_property__is_set bool master;
  38. };