Package jni

Class JniParticleSystem


  • public class JniParticleSystem
    extends Object
    Author:
    Grégory Van den Borre
    • Constructor Detail

      • JniParticleSystem

        public JniParticleSystem()
    • Method Detail

      • createEmitter

        public long createEmitter​(long pointer)
        Create an emitter in native code.
        Parameters:
        pointer - Pointer address to the native object.
        Returns:
        The emitter pointer address.
      • createColorAffector

        public long createColorAffector​(long pointer)
        Create a color affector in native code.
        Parameters:
        pointer - Address to the native object.
        Returns:
        The color affector pointer address.
      • createForceAffector

        public long createForceAffector​(long pointer)
        Create a force affector in native code.
        Parameters:
        pointer - Address to the native object.
        Returns:
        The force affector pointer address.
      • createScaleAffector

        public long createScaleAffector​(long pointer)
        Create a scale affector in native code.
        Parameters:
        pointer - Address to the native object.
        Returns:
        The scale affector pointer address.
      • setSize

        public void setSize​(long pointer,
                            float width,
                            float height)
        Set the particle size in native code.
        Parameters:
        pointer - Address to the native object.
        width - Particle width.
        height - Particle height.
      • setMaterial

        public void setMaterial​(long pointer,
                                long material)
        Set the particle material in native code.
        Parameters:
        pointer - Address to the native object.
        material - Material to use.
      • setQuota

        public void setQuota​(long pointer,
                             int quota)
        Set the particle quota in native code.
        Parameters:
        pointer - Address to the native object.
        quota - Quota to set.
      • setParticleOrientation

        public void setParticleOrientation​(long pointer,
                                           int orientationType)
        Set the particle billboard orientation in native code.
        Parameters:
        pointer - Address to the native object.
        orientationType - Orientation type.
      • setBillboardOrigin

        public void setBillboardOrigin​(long pointerAddress,
                                       int value)
        Set the billboard origin.
        Parameters:
        pointerAddress - Address to the native object.
        value - Origin enum value.
      • attachToNode

        public void attachToNode​(long pointer,
                                 long nodePointer)
        Attach this object to a node in native code.
        Parameters:
        pointer - Address to the native object.
        nodePointer - Address to the native node object.
      • keepInLocalSpace

        public void keepInLocalSpace​(long pointer,
                                     boolean keep)
        Keep particle in local space.
        Parameters:
        pointer - Address to the native object.
        keep - true to keep.