AnimatedModel.pkg 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. $#include "Graphics/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. void UpdateBoneBoundingBox();
  32. tolua_property__get_set Model* model;
  33. tolua_readonly tolua_property__get_set Skeleton& skeleton;
  34. tolua_readonly tolua_property__get_set unsigned numAnimationStates;
  35. tolua_property__get_set float animationLodBias;
  36. tolua_property__get_set bool updateInvisible;
  37. tolua_readonly tolua_property__get_set unsigned numMorphs;
  38. tolua_readonly tolua_property__is_set bool master;
  39. };