StaticModel.pkg 995 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. void ApplyMaterialList(const String fileName = String::EMPTY);
  14. Model* GetModel() const;
  15. unsigned GetNumGeometries() const;
  16. Material* GetMaterial(unsigned index = 0) const;
  17. unsigned GetOcclusionLodLevel() const;
  18. bool IsInside(const Vector3& point) const;
  19. bool IsInsideLocal(const Vector3& point) const;
  20. tolua_property__get_set Model* model;
  21. tolua_property__get_set Material* material;
  22. tolua_readonly tolua_property__get_set BoundingBox& boundingBox;
  23. tolua_readonly tolua_property__get_set unsigned numGeometries;
  24. tolua_property__get_set unsigned occlusionLodLevel;
  25. };