Public Member Functions | List of all members
PxParticleExt::IndexPool Class Referenceabstract

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>

Public Member Functions

virtual PxU32 allocateIndices (PxU32 num, const PxStrideIterator< PxU32 > &indexBuffer)=0
 Allocates a requested number of indices if possible. More...
 
virtual void freeIndices (PxU32 num, const PxStrideIterator< const PxU32 > &indexBuffer)=0
 Deallocates a requested number of indices. More...
 
virtual void freeIndices ()=0
 Deallocates all previously allocated indices. More...
 
virtual void release ()=0
 Releases IndexPool instance. More...
 
virtual ~IndexPool ()
 virtual destructor More...
 

Detailed Description

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()

Constructor & Destructor Documentation

virtual PxParticleExt::IndexPool::~IndexPool ( )
inlinevirtual

virtual destructor

Member Function Documentation

virtual PxU32 PxParticleExt::IndexPool::allocateIndices ( PxU32  num,
const PxStrideIterator< PxU32 > &  indexBuffer 
)
pure virtual

Allocates a requested number of indices if possible.

Parameters
[in]numNumber of indices that should be allocated.
[out]indexBufferStrided data to which allocated indices are written.
Returns
PxU32. Number of indices that where allocated by the operation.
virtual void PxParticleExt::IndexPool::freeIndices ( PxU32  num,
const PxStrideIterator< const PxU32 > &  indexBuffer 
)
pure virtual

Deallocates a requested number of indices.

Parameters
[in]numNumber of indices that should be freed.
[in]indexBufferStrided 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

Releases IndexPool instance.


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


Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com