TerrainPatch.pkg 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. $#include "Graphics/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 ResetLod();
  10. Geometry* GetGeometry() const;
  11. Geometry* GetMaxLodGeometry() const;
  12. Geometry* GetOcclusionGeometry() const;
  13. VertexBuffer* GetVertexBuffer() const;
  14. Terrain* GetOwner() const;
  15. TerrainPatch* GetNorthPatch() const;
  16. TerrainPatch* GetSouthPatch() const;
  17. TerrainPatch* GetWestPatch() const;
  18. TerrainPatch* GetEastPatch() const;
  19. const IntVector2& GetCoordinates() const;
  20. unsigned GetLodLevel() const;
  21. tolua_readonly tolua_property__get_set Geometry* geometry;
  22. tolua_readonly tolua_property__get_set Geometry* maxLodGeometry;
  23. tolua_readonly tolua_property__get_set Geometry* occlusionGeometry;
  24. tolua_readonly tolua_property__get_set VertexBuffer* vertexBuffer;
  25. tolua_property__get_set Terrain* owner;
  26. tolua_readonly tolua_property__get_set TerrainPatch* northPatch;
  27. tolua_readonly tolua_property__get_set TerrainPatch* southPatch;
  28. tolua_readonly tolua_property__get_set TerrainPatch* westPatch;
  29. tolua_readonly tolua_property__get_set TerrainPatch* eastPatch;
  30. tolua_property__get_set BoundingBox& boundingBox;
  31. tolua_property__get_set IntVector2& coordinates;
  32. tolua_readonly tolua_property__get_set unsigned lodLevel;
  33. };