BillboardSet.pkg 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. $#include "BillboardSet.h"
  2. struct Billboard
  3. {
  4. Vector3 position_ @ position;
  5. Vector2 size_ @ size;
  6. Rect uv_ @ uv;
  7. Color color_ @ color;
  8. float rotation_ @ rotation;
  9. bool enabled_ @ enabled;
  10. float sortDistance_ @ sortDistance;
  11. };
  12. class BillboardSet : public Drawable
  13. {
  14. void SetMaterial(Material* material);
  15. void SetNumBillboards(unsigned num);
  16. void SetRelative(bool enable);
  17. void SetScaled(bool enable);
  18. void SetSorted(bool enable);
  19. void SetAnimationLodBias(float bias);
  20. void Commit();
  21. Material* GetMaterial() const;
  22. unsigned GetNumBillboards() const;
  23. Billboard* GetBillboard(unsigned index);
  24. bool IsRelative() const;
  25. bool IsScaled() const;
  26. bool IsSorted() const;
  27. float GetAnimationLodBias() const;
  28. tolua_property__get_set Material* material;
  29. tolua_property__get_set unsigned numBillboards;
  30. tolua_property__is_set bool relative;
  31. tolua_property__is_set bool scaled;
  32. tolua_property__is_set bool sorted;
  33. tolua_property__get_set float animationLodBias;
  34. };