BillboardSet.pkg 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. $#include "Graphics/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. };
  11. class BillboardSet : public Drawable
  12. {
  13. void SetMaterial(Material* material);
  14. void SetNumBillboards(unsigned num);
  15. void SetRelative(bool enable);
  16. void SetScaled(bool enable);
  17. void SetSorted(bool enable);
  18. void SetFixedScreenSize(bool enable);
  19. void SetFaceCameraMode(FaceCameraMode mode);
  20. void SetMinAngle(float angle);
  21. void SetAnimationLodBias(float bias);
  22. void Commit();
  23. Material* GetMaterial() const;
  24. unsigned GetNumBillboards() const;
  25. Billboard* GetBillboard(unsigned index);
  26. bool IsRelative() const;
  27. bool IsScaled() const;
  28. bool IsSorted() const;
  29. bool IsFixedScreenSize() const;
  30. FaceCameraMode GetFaceCameraMode() const;
  31. float GetMinAngle() const;
  32. float GetAnimationLodBias() const;
  33. tolua_property__get_set Material* material;
  34. tolua_property__get_set unsigned numBillboards;
  35. tolua_property__is_set bool relative;
  36. tolua_property__is_set bool scaled;
  37. tolua_property__is_set bool sorted;
  38. tolua_property__is_set bool fixedScreenSize;
  39. tolua_property__get_set FaceCameraMode faceCameraMode;
  40. tolua_property__get_set float minAngle;
  41. tolua_property__get_set float animationLodBias;
  42. };