StaticModel.pkg 933 B

12345678910111213141516171819202122232425262728
  1. $#include "StaticModel.h"
  2. struct StaticModelGeometryData
  3. {
  4. Vector3 center_ @ center;
  5. unsigned lodLevel_ @ lodLevel;
  6. };
  7. class StaticModel : public Drawable
  8. {
  9. void SetModel(Model* model);
  10. void SetMaterial(Material* material);
  11. bool SetMaterial(unsigned index, Material* material);
  12. void SetOcclusionLodLevel(unsigned level);
  13. Model* GetModel() const;
  14. unsigned GetNumGeometries() const;
  15. Material* GetMaterial(unsigned index = 0) const;
  16. unsigned GetOcclusionLodLevel() const;
  17. bool IsInside(const Vector3& point) const;
  18. bool IsInsideLocal(const Vector3& point) const;
  19. tolua_property__get_set Model* model;
  20. tolua_property__get_set Material* material;
  21. tolua_readonly tolua_property__get_set BoundingBox& boundingBox;
  22. tolua_readonly tolua_property__get_set unsigned numGeometries;
  23. tolua_property__get_set unsigned occlusionLodLevel;
  24. };