Class to manage particle indices. Extension particle index management can be useful if no application side particle index allocation functionality is available. An PxParticleExt::IndexPool instance is meant to be used for one PxParticleSystem/PxParticleFluid instance. The instance can be created with PxParticleExt::createIndexPool().
More...
#include <PxParticleExt.h>
Class to manage particle indices. Extension particle index management can be useful if no application side particle index allocation functionality is available. An PxParticleExt::IndexPool instance is meant to be used for one PxParticleSystem/PxParticleFluid instance. The instance can be created with PxParticleExt::createIndexPool().
- See Also
- PxParticleExt::createIndexPool()
virtual PxParticleExt::IndexPool::~IndexPool |
( |
| ) |
|
|
inlinevirtual |
Allocates a requested number of indices if possible.
- Parameters
-
[in] | num | Number of indices that should be allocated. |
[out] | indexBuffer | Strided data to which allocated indices are written. |
- Returns
- PxU32. Number of indices that where allocated by the operation.
Deallocates a requested number of indices.
- Parameters
-
[in] | num | Number of indices that should be freed. |
[in] | indexBuffer | Strided data describing the indices that need to be freed. It's a requirement to specify unique indices, that where previously allocated by PxParticlesExt::allocateIndices() |
virtual void PxParticleExt::IndexPool::freeIndices |
( |
| ) |
|
|
pure virtual |
Deallocates all previously allocated indices.
virtual void PxParticleExt::IndexPool::release |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: