Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename TerrainBoundsEntity to ChunkBoundsEntity
... since it can be used also for other chunked entities - not just terrain
- Loading branch information
Showing
5 changed files
with
16 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters