TerrainPatch.pkg 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. $#include "TerrainPatch.h"
  2. class TerrainPatch : public Drawable
  3. {
  4. void SetOwner(Terrain* terrain);
  5. void SetNeighbors(TerrainPatch* north, TerrainPatch* south, TerrainPatch* west, TerrainPatch* east);
  6. void SetMaterial(Material* material);
  7. void SetBoundingBox(const BoundingBox& box);
  8. void SetCoordinates(const IntVector2& coordinates);
  9. void SetOcclusionOffset(float offset);
  10. void ResetLod();
  11. Geometry* GetGeometry() const;
  12. Geometry* GetMaxLodGeometry() const;
  13. Geometry* GetMinLodGeometry() const;
  14. VertexBuffer* GetVertexBuffer() const;
  15. Terrain* GetOwner() const;
  16. TerrainPatch* GetNorthPatch() const;
  17. TerrainPatch* GetSouthPatch() const;
  18. TerrainPatch* GetWestPatch() const;
  19. TerrainPatch* GetEastPatch() const;
  20. const IntVector2& GetCoordinates() const;
  21. unsigned GetLodLevel() const;
  22. float GetOcclusionOffset() const;
  23. tolua_readonly tolua_property__get_set Geometry* geometry;
  24. tolua_readonly tolua_property__get_set Geometry* maxLodGeometry;
  25. tolua_readonly tolua_property__get_set Geometry* minLodGeometry;
  26. tolua_readonly tolua_property__get_set VertexBuffer* vertexBuffer;
  27. tolua_property__get_set Terrain* owner;
  28. tolua_readonly tolua_property__get_set TerrainPatch* northPatch;
  29. tolua_readonly tolua_property__get_set TerrainPatch* southPatch;
  30. tolua_readonly tolua_property__get_set TerrainPatch* westPatch;
  31. tolua_readonly tolua_property__get_set TerrainPatch* eastPatch;
  32. tolua_property__get_set BoundingBox& boundingBox;
  33. tolua_property__get_set IntVector2& coordinates;
  34. tolua_readonly tolua_property__get_set unsigned lodLevel;
  35. tolua_property__get_set float occlusionOffset;
  36. };