Class PxParticleAndDiffuseBufferDesc

java.lang.Object
physx.NativeObject
physx.particles.PxParticleBufferDesc
physx.particles.PxParticleAndDiffuseBufferDesc

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

      public static PxParticleAndDiffuseBufferDesc wrapPointer(long address)
    • arrayGet

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

      public static PxParticleAndDiffuseBufferDesc createAt(long address)
      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:
      destroy in class PxParticleBufferDesc
    • getDiffuseParams

      public PxDiffuseParticleParams getDiffuseParams()
    • setDiffuseParams

      public void setDiffuseParams(PxDiffuseParticleParams value)
    • getMaxDiffuseParticles

      public int getMaxDiffuseParticles()
    • setMaxDiffuseParticles

      public void setMaxDiffuseParticles(int value)
    • getMaxActiveDiffuseParticles

      public int getMaxActiveDiffuseParticles()
    • setMaxActiveDiffuseParticles

      public void setMaxActiveDiffuseParticles(int value)