DecalSet.pkg 1.1 KB

12345678910111213141516171819202122232425
  1. $#include "DecalSet.h"
  2. class DecalSet : public Drawable
  3. {
  4. void SetMaterial(Material* material);
  5. void SetMaxVertices(unsigned num);
  6. void SetMaxIndices(unsigned num);
  7. 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);
  8. void RemoveDecals(unsigned num);
  9. void RemoveAllDecals();
  10. Material* GetMaterial() const;
  11. unsigned GetNumDecals() const;
  12. unsigned GetNumVertices() const;
  13. unsigned GetNumIndices() const;
  14. unsigned GetMaxVertices() const;
  15. unsigned GetMaxIndices() const;
  16. tolua_property__get_set Material* material;
  17. tolua_readonly tolua_property__get_set unsigned numDecals;
  18. tolua_readonly tolua_property__get_set unsigned numVertices;
  19. tolua_readonly tolua_property__get_set unsigned numIndices;
  20. tolua_property__get_set unsigned maxVertices;
  21. tolua_property__get_set unsigned maxIndices;
  22. };