DecalSet.pkg 1.2 KB

12345678910111213141516171819202122232425262728
  1. $#include "Graphics/DecalSet.h"
  2. class DecalSet : public Drawable
  3. {
  4. void SetMaterial(Material* material);
  5. void SetMaxVertices(unsigned num);
  6. void SetMaxIndices(unsigned num);
  7. void SetOptimizeBufferSize(bool enable);
  8. bool AddDecal(Drawable* target, const Vector3& worldPosition, const Quaternion& worldRotation, float size, float aspectRatio, float depth, const Vector2& topLeftUV, const Vector2& bottomRightUV, float timeToLive = 0.0f, float normalCutoff = 0.1f, unsigned subGeometry = M_MAX_UNSIGNED);
  9. void RemoveDecals(unsigned num);
  10. void RemoveAllDecals();
  11. Material* GetMaterial() const;
  12. unsigned GetNumDecals() const;
  13. unsigned GetNumVertices() const;
  14. unsigned GetNumIndices() const;
  15. unsigned GetMaxVertices() const;
  16. unsigned GetMaxIndices() const;
  17. bool GetOptimizeBufferSize() const;
  18. tolua_property__get_set Material* material;
  19. tolua_readonly tolua_property__get_set unsigned numDecals;
  20. tolua_readonly tolua_property__get_set unsigned numVertices;
  21. tolua_readonly tolua_property__get_set unsigned numIndices;
  22. tolua_property__get_set unsigned maxVertices;
  23. tolua_property__get_set unsigned maxIndices;
  24. tolua_property__get_set bool optimizeBufferSize;
  25. };