java.lang.Object
physx.NativeObject
physx.particles.PxParticleBufferDesc
- Direct Known Subclasses:
PxParticleAndDiffuseBufferDesc
Structure to define user-defined particle state when constructing a new particle system.
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxParticleBufferDescarrayGet(long baseAddress, int index) static PxParticleBufferDesccreateAt(long address) static <T> PxParticleBufferDesccreateAt(T allocator, NativeObject.Allocator<T> allocate) voiddestroy()intintintintvoidsetMaxParticles(int value) voidsetMaxVolumes(int value) voidsetNumActiveParticles(int value) voidsetNumVolumes(int value) voidvoidsetPositions(PxVec4 value) voidsetVelocities(PxVec4 value) voidsetVolumes(PxParticleVolume value) static PxParticleBufferDescwrapPointer(long address) Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
Field Details
-
SIZEOF
public static final int SIZEOF -
ALIGNOF
public static final int ALIGNOF- See Also:
-
-
Constructor Details
-
PxParticleBufferDesc
protected PxParticleBufferDesc(long address) -
PxParticleBufferDesc
public PxParticleBufferDesc()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxParticleBufferDesc
-
createAt
- Type Parameters:
T- Allocator class, e.g. LWJGL's MemoryStack.- Parameters:
allocator- Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.allocate- Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.- Returns:
- Stack allocated object of PxParticleBufferDesc
-
destroy
public void destroy() -
getPositions
-
setPositions
-
getVelocities
-
setVelocities
-
getPhases
-
setPhases
-
getVolumes
-
setVolumes
-
getNumActiveParticles
public int getNumActiveParticles() -
setNumActiveParticles
public void setNumActiveParticles(int value) -
getMaxParticles
public int getMaxParticles() -
setMaxParticles
public void setMaxParticles(int value) -
getNumVolumes
public int getNumVolumes() -
setNumVolumes
public void setNumVolumes(int value) -
getMaxVolumes
public int getMaxVolumes() -
setMaxVolumes
public void setMaxVolumes(int value)
-