Class PxParticleBufferDesc

java.lang.Object
physx.NativeObject
physx.particles.PxParticleBufferDesc
Direct Known Subclasses:
PxParticleAndDiffuseBufferDesc

public class PxParticleBufferDesc extends NativeObject
Structure to define user-defined particle state when constructing a new particle system.
  • 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

      public static PxParticleBufferDesc wrapPointer(long address)
    • arrayGet

      public static PxParticleBufferDesc arrayGet(long baseAddress, int index)
    • createAt

      public static PxParticleBufferDesc createAt(long address)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      Returns:
      Stack allocated object of PxParticleBufferDesc
    • createAt

      public static <T> PxParticleBufferDesc 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 PxParticleBufferDesc
    • destroy

      public void destroy()
    • getPositions

      public PxVec4 getPositions()
    • setPositions

      public void setPositions(PxVec4 value)
    • getVelocities

      public PxVec4 getVelocities()
    • setVelocities

      public void setVelocities(PxVec4 value)
    • getPhases

      public PxU32Ptr getPhases()
    • setPhases

      public void setPhases(PxU32Ptr value)
    • getVolumes

      public PxParticleVolume getVolumes()
    • setVolumes

      public void setVolumes(PxParticleVolume value)
    • 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)