29#ifndef GU_INCREMENTAL_AABB_PRUNER_CORE_H
30#define GU_INCREMENTAL_AABB_PRUNER_CORE_H
33#include "GuIncrementalAABBTree.h"
34#include "GuPruningPool.h"
35#include "GuAABBTreeUpdateMap.h"
36#include "foundation/PxHashMap.h"
44 typedef PxHashMap<PoolIndex, IncrementalAABBTreeNode*> IncrementalPrunerMap;
63 bool addObject(
const PoolIndex poolIndex, PxU32 timeStamp);
64 bool removeObject(
const PoolIndex poolIndex,
const PoolIndex poolRelocatedLastIndex, PxU32& timeStamp);
67 void swapIndex(
const PoolIndex poolIndex,
const PoolIndex poolRelocatedLastIndex);
69 bool updateObject(
const PoolIndex poolIndex);
71 PxU32 removeMarkedObjects(PxU32 timeStamp);
78 void shiftOrigin(
const PxVec3& shift);
85 mLastTree = (mLastTree + 1) % 2;
86 mCurrentTree = (mCurrentTree + 1) % 2;
91 PX_FORCE_INLINE PxU32 getNbObjects()
const {
return mAABBTree[0].mapping.size() + mAABBTree[1].mapping.size(); }
95 void test(
bool hierarchyCheck =
true);
98 static const PxU32 NUM_TREES = 2;
Definition GuIncrementalAABBPrunerCore.h:56
Definition GuIncrementalAABBTree.h:68
Definition GuIncrementalAABBTree.h:131
Definition GuPruningPool.h:55
Definition GuBounds.h:115
Class representing 3D range or axis aligned bounding box.
Definition PxBounds3.h:58
Definition PxRenderOutput.h:50
Definition PxUserAllocated.h:43
3 Element vector class.
Definition PxVec3.h:50
#define PX_FORCE_INLINE
Definition PxPreprocessor.h:335
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
Definition GuIncrementalAABBPrunerCore.h:47