PixelLightAPI
.
|
#include <MeshOctree.h>
Public Member Functions | |
PLMESH_API | MeshOctree () |
Constructor. | |
virtual PLMESH_API | ~MeshOctree () |
Destructor. | |
PLMESH_API bool | Build (MeshLODLevel &cMeshLODLevel, PLCore::uint32 nNumOfGeometries, const PLCore::uint32 nGeometries[], PLCore::Array< PLCore::Array< PLCore::uint32 > * > *plstOctreeIDList=nullptr) |
Builds the octree. | |
PLMESH_API void | Draw (const PLGraphics::Color4 &cColor, const PLMath::Matrix4x4 &mWorldViewProjection, float fLineWidth=1.0f) const |
Draws the octree. |
Mesh octree.
PLMESH_API PLMesh::MeshOctree::MeshOctree | ( | ) |
Constructor.
virtual PLMESH_API PLMesh::MeshOctree::~MeshOctree | ( | ) | [virtual] |
Destructor.
PLMESH_API bool PLMesh::MeshOctree::Build | ( | MeshLODLevel & | cMeshLODLevel, |
PLCore::uint32 | nNumOfGeometries, | ||
const PLCore::uint32 | nGeometries[], | ||
PLCore::Array< PLCore::Array< PLCore::uint32 > * > * | plstOctreeIDList = nullptr |
||
) |
Builds the octree.
[in] | cMeshLODLevel | Owner mesh LOD level |
[in] | nNumOfGeometries | Number of geometry indices |
[in] | nGeometries | Geometry indices |
[out] | plstOctreeIDList | Will optionally store a list of octrees each geometry is in if not a null pointer |
PLMESH_API void PLMesh::MeshOctree::Draw | ( | const PLGraphics::Color4 & | cColor, |
const PLMath::Matrix4x4 & | mWorldViewProjection, | ||
float | fLineWidth = 1.0f |
||
) | const |
Draws the octree.
[in] | cColor | Color to use |
[in] | mWorldViewProjection | World view projection matrix to use |
[in] | fLineWidth | Line width |
|