java.lang.Object
physx.NativeObject
physx.particles.PxParticleBufferDesc
- Direct Known Subclasses:
PxParticleAndDiffuseBufferDesc
-
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
- Returns:
- WebIDL type:
PxVec4
-
setPositions
- Parameters:
value- WebIDL type:PxVec4
-
getVelocities
- Returns:
- WebIDL type:
PxVec4
-
setVelocities
- Parameters:
value- WebIDL type:PxVec4
-
getPhases
- Returns:
- WebIDL type:
PxU32Ptr[Value]
-
setPhases
- Parameters:
value- WebIDL type:PxU32Ptr[Value]
-
getVolumes
- Returns:
- WebIDL type:
PxParticleVolume
-
setVolumes
- Parameters:
value- WebIDL type:PxParticleVolume
-
getNumActiveParticles
public int getNumActiveParticles()- Returns:
- WebIDL type: unsigned long
-
setNumActiveParticles
public void setNumActiveParticles(int value) - Parameters:
value- WebIDL type: unsigned long
-
getMaxParticles
public int getMaxParticles()- Returns:
- WebIDL type: unsigned long
-
setMaxParticles
public void setMaxParticles(int value) - Parameters:
value- WebIDL type: unsigned long
-
getNumVolumes
public int getNumVolumes()- Returns:
- WebIDL type: unsigned long
-
setNumVolumes
public void setNumVolumes(int value) - Parameters:
value- WebIDL type: unsigned long
-
getMaxVolumes
public int getMaxVolumes()- Returns:
- WebIDL type: unsigned long
-
setMaxVolumes
public void setMaxVolumes(int value) - Parameters:
value- WebIDL type: unsigned long
-