java.lang.Object
physx.NativeObject
physx.particles.PxParticleBufferDesc
physx.particles.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 TypeMethodDescriptionarrayGet(long baseAddress, int index) createAt(long address) static <T> PxParticleAndDiffuseBufferDesccreateAt(T allocator, NativeObject.Allocator<T> allocate) voiddestroy()intintvoidvoidsetMaxActiveDiffuseParticles(int value) voidsetMaxDiffuseParticles(int value) wrapPointer(long address) Methods inherited from class physx.particles.PxParticleBufferDesc
getMaxParticles, getMaxVolumes, getNumActiveParticles, getNumVolumes, getPhases, getPositions, getVelocities, getVolumes, setMaxParticles, setMaxVolumes, setNumActiveParticles, setNumVolumes, setPhases, setPositions, setVelocities, setVolumesMethods 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
-
PxParticleAndDiffuseBufferDesc
protected PxParticleAndDiffuseBufferDesc(long address) -
PxParticleAndDiffuseBufferDesc
public PxParticleAndDiffuseBufferDesc()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxParticleAndDiffuseBufferDesc
-
createAt
public static <T> PxParticleAndDiffuseBufferDesc createAt(T allocator, NativeObject.Allocator<T> allocate) - 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 PxParticleAndDiffuseBufferDesc
-
destroy
public void destroy()- Overrides:
destroyin classPxParticleBufferDesc
-
getDiffuseParams
- Returns:
- WebIDL type:
PxDiffuseParticleParams[Value]
-
setDiffuseParams
- Parameters:
value- WebIDL type:PxDiffuseParticleParams[Value]
-
getMaxDiffuseParticles
public int getMaxDiffuseParticles()- Returns:
- WebIDL type: unsigned long
-
setMaxDiffuseParticles
public void setMaxDiffuseParticles(int value) - Parameters:
value- WebIDL type: unsigned long
-
getMaxActiveDiffuseParticles
public int getMaxActiveDiffuseParticles()- Returns:
- WebIDL type: unsigned long
-
setMaxActiveDiffuseParticles
public void setMaxActiveDiffuseParticles(int value) - Parameters:
value- WebIDL type: unsigned long
-