RavEngine
Loading...
Searching...
No Matches
physx::Gu::PruningPool Class Reference
Inheritance diagram for physx::Gu::PruningPool:
[legend]
Collaboration diagram for physx::Gu::PruningPool:
[legend]

Public Member Functions

 PruningPool (PxU64 contextID, TransformCacheMode mode)
 
PX_FORCE_INLINE const PrunerPayload & getPayloadData (PrunerHandle handle, PrunerPayloadData *data=NULL) const
 
void shiftOrigin (const PxVec3 &shift)
 
PxU32 addObjects (PrunerHandle *results, const PxBounds3 *bounds, const PrunerPayload *data, const PxTransform *transforms, PxU32 count)
 
PoolIndex removeObject (PrunerHandle h, PrunerPayloadRemovalCallback *removalCallback)
 
PX_FORCE_INLINE PoolIndex getIndex (PrunerHandle h) const
 
PX_FORCE_INLINE PrunerPayload * getObjects () const
 
PX_FORCE_INLINE const PxTransform * getTransforms () const
 
PX_FORCE_INLINE PxTransform * getTransforms ()
 
PX_FORCE_INLINE bool setTransform (PrunerHandle handle, const PxTransform &transform)
 
PX_FORCE_INLINE PxU32 getNbActiveObjects () const
 
PX_FORCE_INLINE const PxBounds3 * getCurrentWorldBoxes () const
 
PX_FORCE_INLINE PxBounds3 * getCurrentWorldBoxes ()
 
PX_FORCE_INLINE const AABBTreeBounds & getCurrentAABBTreeBounds () const
 
void updateAndInflateBounds (const PrunerHandle *handles, const PxU32 *boundsIndices, const PxBounds3 *newBounds, const PxTransform32 *newTransforms, PxU32 count, float epsilon)
 
void preallocate (PxU32 entries)
 
bool resize (PxU32 newCapacity)
 
- Public Member Functions inherited from physx::PxUserAllocated
PX_INLINE void * operator new (size_t, void *address)
 
PX_INLINE void operator delete (void *, void *)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete (void *ptr, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete[] (void *ptr, Alloc alloc, const char *fileName, int line)
 
PX_INLINE void operator delete (void *ptr)
 
PX_INLINE void operator delete[] (void *ptr)
 

Public Attributes

PxU32 mNbObjects
 Current number of objects.
 
PxU32 mMaxNbObjects
 Max. number of objects (capacity for mWorldBoxes, mObjects)
 
AABBTreeBounds mWorldBoxes
 List of world boxes, stores mNbObjects, capacity=mMaxNbObjects.
 
PrunerPayload * mObjects
 List of objects, stores mNbObjects, capacity=mMaxNbObjects.
 
PxTransform * mTransforms
 
const TransformCacheMode mTransformCacheMode
 
PoolIndex * mHandleToIndex
 Maps from PrunerHandle to internal index (payload/userData index in mObjects)
 
PrunerHandle * mIndexToHandle
 Inverse map from objectIndex to PrunerHandle.
 
PrunerHandle mFirstRecycledHandle
 
PxU64 mContextID
 

Member Data Documentation

◆ mMaxNbObjects

PxU32 physx::Gu::PruningPool::mMaxNbObjects

Max. number of objects (capacity for mWorldBoxes, mObjects)

these arrays are parallel


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