ExtGpu::PxParticleVolumeBufferHelper
Defined in include/extensions/PxParticleExt.h
-
class PxParticleVolumeBufferHelper
Helper class to manage communicating PxParticleVolumes data to PxParticleBuffer.
- Deprecated:
Particle-cloth, -rigids, -attachments and -volumes have been deprecated.
Public Functions
-
virtual void release() = 0
-
virtual PxU32 getMaxVolumes() const = 0
- Returns
The maximum number of PxParticleVolume this PxParticleVolumeBufferHelper instance can hold.
-
virtual PxU32 getNumVolumes() const = 0
- Returns
The current number of PxParticleVolume in this PxParticleVolumeBufferHelper instance.
-
virtual PxU32 getMaxTriangles() const = 0
- Returns
The maximum number of triangles this PxParticleVolumeBufferHelper instance can hold.
-
virtual PxU32 getNumTriangles() const = 0
- Returns
The current number of triangles in this PxParticleVolumeBufferHelper instance.
-
virtual PxParticleVolume *getParticleVolumes() = 0
- Returns
A pointer to the PxParticleVolume s of this PxParticleVolumeBufferHelper instance.
-
virtual PxParticleVolumeMesh *getParticleVolumeMeshes() = 0
- Returns
A pointer to the PxParticleVolumeMesh structs describing the PxParticleVolumes of this PxParticleVolumeBufferHelper instance.
-
virtual PxU32 *getTriangles() = 0
- Returns
A pointer to the triangle indices in this PxParticleVolumeBufferHelper instance.
-
virtual void addVolume(const PxParticleVolume &volume, const PxParticleVolumeMesh &volumeMesh, const PxU32 *triangles, const PxU32 numTriangles) = 0
Adds a PxParticleVolume with a PxParticleVolumeMesh.
- Parameters
volume – [in] The PxParticleVolume to be added.
volumeMesh – [in] A PxParticleVolumeMesh that describes the volumes to be added. startIndex is the index into the triangle list of the PxParticleVolumeBufferHelper instance.
triangles – [in] A pointer to the triangle indices of the PxParticleVolume to be added.
numTriangles – [in] The number of triangles of the PxParticleVolume to be added.
-
virtual void addVolume(const PxU32 particleOffset, const PxU32 numParticles, const PxU32 *triangles, const PxU32 numTriangles) = 0
Adds a volume.
- Parameters
particleOffset – [in] The index of the first particle of the cloth that maps to this volume in the PxParticleClothBufferHelper instance.
numParticles – [in] The number of particles of the cloth that maps to this volume in the PxParticleClothBufferHelper instance.
triangles – [in] A pointer to the triangle indices of this volume.
numTriangles – [in] The number of triangles in this volume.
Protected Functions
-
inline virtual ~PxParticleVolumeBufferHelper()