Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Rename TerrainBoundsEntity to ChunkBoundsEntity
... since it can be used also for other chunked entities - not just terrain
- Loading branch information
Showing
with
16 additions
and 15 deletions.
@@ -1,21 +1,21 @@ | ||
#ifndef TERRAINBOUNDSENTITY_H | ||
#define TERRAINBOUNDSENTITY_H | ||
#ifndef CHUNKBOUNDSENTITY_H | ||
#define CHUNKBOUNDSENTITY_H | ||
|
||
#include <Qt3DCore/QEntity> | ||
|
||
class AABB; | ||
class AABBMesh; | ||
|
||
//! Draws bounds of axis aligned bounding boxes | ||
class TerrainBoundsEntity : public Qt3DCore::QEntity | ||
class ChunkBoundsEntity : public Qt3DCore::QEntity | ||
{ | ||
public: | ||
TerrainBoundsEntity( Qt3DCore::QNode *parent = nullptr ); | ||
ChunkBoundsEntity( Qt3DCore::QNode *parent = nullptr ); | ||
|
||
void setBoxes( const QList<AABB> &bboxes ); | ||
|
||
private: | ||
AABBMesh *aabbMesh; | ||
}; | ||
|
||
#endif // TERRAINBOUNDSENTITY_H | ||
#endif // CHUNKBOUNDSENTITY_H |