RavEngine
Loading...
Searching...
No Matches
physx::ExtGpu::PxParticleVolumeBufferHelper Class Referenceabstract

Helper class to manage communicating PxParticleVolumes data to PxParticleBuffer. More...

#include <PxParticleExt.h>

Inheritance diagram for physx::ExtGpu::PxParticleVolumeBufferHelper:
[legend]

Public Member Functions

virtual void release ()=0
 
virtual PxU32 getMaxVolumes () const =0
 
virtual PxU32 getNumVolumes () const =0
 
virtual PxU32 getMaxTriangles () const =0
 
virtual PxU32 getNumTriangles () const =0
 
virtual PxParticleVolume * getParticleVolumes ()=0
 
virtual PxParticleVolumeMesh * getParticleVolumeMeshes ()=0
 
virtual PxU32 * getTriangles ()=0
 
virtual void addVolume (const PxParticleVolume &volume, const PxParticleVolumeMesh &volumeMesh, const PxU32 *triangles, const PxU32 numTriangles)=0
 Adds a PxParticleVolume with a PxParticleVolumeMesh.
 
virtual void addVolume (const PxU32 particleOffset, const PxU32 numParticles, const PxU32 *triangles, const PxU32 numTriangles)=0
 Adds a volume.
 

Detailed Description

Helper class to manage communicating PxParticleVolumes data to PxParticleBuffer.

Member Function Documentation

◆ addVolume() [1/2]

virtual void physx::ExtGpu::PxParticleVolumeBufferHelper::addVolume ( const PxParticleVolume &  volume,
const PxParticleVolumeMesh &  volumeMesh,
const PxU32 *  triangles,
const PxU32  numTriangles 
)
pure virtual

Adds a PxParticleVolume with a PxParticleVolumeMesh.

Parameters
[in]volumeThe PxParticleVolume to be added.
[in]volumeMeshA PxParticleVolumeMesh that describes the volumes to be added. startIndex is the index into the triangle list of the PxParticleVolumeBufferHelper instance.
[in]trianglesA pointer to the triangle indices of the PxParticleVolume to be added.
[in]numTrianglesThe number of triangles of the PxParticleVolume to be added.

Implemented in physx::ExtGpu::ParticleVolumeBuffersImpl, and physx::ExtGpu::ParticleVolumeBuffersImpl.

◆ addVolume() [2/2]

virtual void physx::ExtGpu::PxParticleVolumeBufferHelper::addVolume ( const PxU32  particleOffset,
const PxU32  numParticles,
const PxU32 *  triangles,
const PxU32  numTriangles 
)
pure virtual

Adds a volume.

Parameters
[in]particleOffsetThe index of the first particle of the cloth that maps to this volume in the PxParticleClothBufferHelper instance.
[in]numParticlesThe number of particles of the cloth that maps to this volume in the PxParticleClothBufferHelper instance.
[in]trianglesA pointer to the triangle indices of this volume.
[in]numTrianglesThe number of triangles in this volume.

Implemented in physx::ExtGpu::ParticleVolumeBuffersImpl, and physx::ExtGpu::ParticleVolumeBuffersImpl.

◆ getMaxTriangles()

virtual PxU32 physx::ExtGpu::PxParticleVolumeBufferHelper::getMaxTriangles ( ) const
pure virtual
Returns
The maximum number of triangles this PxParticleVolumeBufferHelper instance can hold.

Implemented in physx::ExtGpu::ParticleVolumeBuffersImpl, and physx::ExtGpu::ParticleVolumeBuffersImpl.

◆ getMaxVolumes()

virtual PxU32 physx::ExtGpu::PxParticleVolumeBufferHelper::getMaxVolumes ( ) const
pure virtual

◆ getNumTriangles()

virtual PxU32 physx::ExtGpu::PxParticleVolumeBufferHelper::getNumTriangles ( ) const
pure virtual
Returns
The current number of triangles in this PxParticleVolumeBufferHelper instance.

Implemented in physx::ExtGpu::ParticleVolumeBuffersImpl, and physx::ExtGpu::ParticleVolumeBuffersImpl.

◆ getNumVolumes()

virtual PxU32 physx::ExtGpu::PxParticleVolumeBufferHelper::getNumVolumes ( ) const
pure virtual

◆ getParticleVolumeMeshes()

virtual PxParticleVolumeMesh * physx::ExtGpu::PxParticleVolumeBufferHelper::getParticleVolumeMeshes ( )
pure virtual
Returns
A pointer to the PxParticleVolumeMesh structs describing the PxParticleVolumes of this PxParticleVolumeBufferHelper instance.

Implemented in physx::ExtGpu::ParticleVolumeBuffersImpl, and physx::ExtGpu::ParticleVolumeBuffersImpl.

◆ getParticleVolumes()

virtual PxParticleVolume * physx::ExtGpu::PxParticleVolumeBufferHelper::getParticleVolumes ( )
pure virtual

◆ getTriangles()

virtual PxU32 * physx::ExtGpu::PxParticleVolumeBufferHelper::getTriangles ( )
pure virtual
Returns
A pointer to the triangle indices in this PxParticleVolumeBufferHelper instance.

Implemented in physx::ExtGpu::ParticleVolumeBuffersImpl, and physx::ExtGpu::ParticleVolumeBuffersImpl.


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