RibbonTrail.pkg 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. $#include "Graphics/RibbonTrail.h"
  2. enum TrailType
  3. {
  4. TT_FACE_CAMERA,
  5. TT_BONE
  6. };
  7. class RibbonTrail : public Drawable
  8. {
  9. void SetMaterial(Material* material);
  10. void SetVertexDistance(float length);
  11. void SetWidth(float width);
  12. void SetStartColor(const Color& c);
  13. void SetEndColor(const Color& c);
  14. void SetStartScale(float startScale);
  15. void SetEndScale(float endScale);
  16. void SetTrailType(TrailType type);
  17. void SetSorted(bool enable);
  18. void SetLifetime(float time);
  19. void SetEmitting(bool emitting);
  20. void SetUpdateInvisible(bool updateInvisible);
  21. void SetTailColumn(unsigned tailColumn);
  22. void SetAnimationLodBias(float bias);
  23. void Commit();
  24. Material* GetMaterial() const;
  25. float GetVertexDistance() const;
  26. float GetWidth() const;
  27. const Color& GetStartColor() const;
  28. const Color& GetEndColor() const;
  29. float GetStartScale() const;
  30. float GetEndScale() const;
  31. TrailType GetTrailType() const;
  32. bool IsSorted() const;
  33. float GetLifetime() const;
  34. unsigned GetTailColumn() const;
  35. bool IsEmitting() const;
  36. bool GetUpdateInvisible() const;
  37. float GetAnimationLodBias() const;
  38. tolua_property__get_set Material* material;
  39. tolua_property__get_set float vertexDistance;
  40. tolua_property__get_set float width;
  41. tolua_property__get_set Color& startColor;
  42. tolua_property__get_set Color& endColor;
  43. tolua_property__get_set float startScale;
  44. tolua_property__get_set float endScale;
  45. tolua_property__get_set TrailType trailType;
  46. tolua_property__is_set bool sorted;
  47. tolua_property__get_set float lifetime;
  48. tolua_property__get_set unsigned tailColumn;
  49. tolua_property__is_set bool emitting;
  50. tolua_property__get_set bool updateInvisible;
  51. tolua_property__get_set float animationLodBias;
  52. }