PixelLightAPI  .
Public Member Functions
PLMesh::MeshOctree Class Reference

Mesh octree. More...

#include <MeshOctree.h>

Inheritance diagram for PLMesh::MeshOctree:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

Mesh octree.


Constructor & Destructor Documentation

Constructor.

virtual PLMESH_API PLMesh::MeshOctree::~MeshOctree ( ) [virtual]

Destructor.


Member Function Documentation

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.

Parameters:
[in]cMeshLODLevelOwner mesh LOD level
[in]nNumOfGeometriesNumber of geometry indices
[in]nGeometriesGeometry indices
[out]plstOctreeIDListWill optionally store a list of octrees each geometry is in if not a null pointer
Returns:
'true' if all went fine, else 'false'
PLMESH_API void PLMesh::MeshOctree::Draw ( const PLGraphics::Color4 cColor,
const PLMath::Matrix4x4 mWorldViewProjection,
float  fLineWidth = 1.0f 
) const

Draws the octree.

Parameters:
[in]cColorColor to use
[in]mWorldViewProjectionWorld view projection matrix to use
[in]fLineWidthLine width

The documentation for this class was generated from the following file:


PixelLight PixelLight 0.9.10-R1
Copyright (C) 2002-2011 by The PixelLight Team
Last modified Fri Dec 23 2011 15:51:21
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported