com.threerings.opengl.effect.config
Class ParticleSystemConfig.Layer

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.effect.config.BaseParticleSystemConfig.Layer
          extended by com.threerings.opengl.effect.config.ParticleSystemConfig.Layer
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
ParticleSystemConfig

public static class ParticleSystemConfig.Layer
extends BaseParticleSystemConfig.Layer

A single layer of the system.


Field Summary
 ParticleSystemConfig.Alignment alignment
          Whether or not to align particles' orientations with their velocities.
 SoftReference<float[]> data
          The shared data array.
 boolean depthSort
          Whether or not to sort the particles by depth before rendering.
 SoftReference<BufferObject> elementArrayBuffer
          The shared element array buffer.
 FloatFunctionVariable frame
          Controls the particles' change of texture frame over their lifespans.
 ParticleSystemConfig.ParticleGeometryConfig geometry
          The particle geometry.
 SoftReference<ShortBuffer> indices
          The shared indices.
 FloatFunctionVariable length
          Controls the particles' change of length over their lifespans.
 ConfigReference<MaterialConfig> material
          The material to use for the particle system.
 ParticleSystemConfig.GroupPriority priorityMode
          The render priority (higher priority layers are rendered above lower priority ones).
 int textureDivisionsS
          The number of texture divisions in the S direction.
 int textureDivisionsT
          The number of texture divisions in the T direction.
 
Fields inherited from class com.threerings.opengl.effect.config.BaseParticleSystemConfig.Layer
alphaMode, angularVelocity, color, counter, identity, influences, lifespan, moveParticlesWithEmitter, name, orientation, particleCount, placer, respawnDeadParticles, rotateOrientationsWithEmitter, rotateVelocitiesWithEmitter, shooter, size, speed, startTime, timeScale, transform, visible
 
Constructor Summary
ParticleSystemConfig.Layer()
           
 
Method Summary
 void invalidate()
          Invalidates any cached data.
 boolean shouldRotateOrientations()
          Checks whether we should rotate the orientations and angular velocities (because the alignment is fixed rather than billboard, etc.)
 
Methods inherited from class com.threerings.opengl.effect.config.BaseParticleSystemConfig.Layer
readFields, writeFields
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

geometry

@Editable(category="appearance",
          weight=-0.5)
public ParticleSystemConfig.ParticleGeometryConfig geometry
The particle geometry.


alignment

@Editable(category="appearance",
          weight=-0.5)
public ParticleSystemConfig.Alignment alignment
Whether or not to align particles' orientations with their velocities.


material

@Editable(category="appearance",
          weight=1.5,
          nullable=true)
public ConfigReference<MaterialConfig> material
The material to use for the particle system.


textureDivisionsS

@Editable(category="appearance",
          weight=1.5,
          min=1.0)
public int textureDivisionsS
The number of texture divisions in the S direction.


textureDivisionsT

@Editable(category="appearance",
          weight=1.5,
          min=1.0)
public int textureDivisionsT
The number of texture divisions in the T direction.


depthSort

@Editable(category="appearance",
          weight=2.5)
public boolean depthSort
Whether or not to sort the particles by depth before rendering.


priorityMode

@Editable(category="appearance",
          weight=2.5,
          nullable=true)
public ParticleSystemConfig.GroupPriority priorityMode
The render priority (higher priority layers are rendered above lower priority ones).


length

@Editable(category="appearance",
          weight=3.5,
          min=0.0,
          step=0.01)
public FloatFunctionVariable length
Controls the particles' change of length over their lifespans.


frame

@Editable(category="appearance",
          weight=3.5,
          min=0.0)
public FloatFunctionVariable frame
Controls the particles' change of texture frame over their lifespans.


data

@DeepOmit
public transient SoftReference<float[]> data
The shared data array.


indices

@DeepOmit
public transient SoftReference<ShortBuffer> indices
The shared indices.


elementArrayBuffer

@DeepOmit
public transient SoftReference<BufferObject> elementArrayBuffer
The shared element array buffer.

Constructor Detail

ParticleSystemConfig.Layer

public ParticleSystemConfig.Layer()
Method Detail

invalidate

public void invalidate()
Invalidates any cached data.


shouldRotateOrientations

public boolean shouldRotateOrientations()
Description copied from class: BaseParticleSystemConfig.Layer
Checks whether we should rotate the orientations and angular velocities (because the alignment is fixed rather than billboard, etc.)

Specified by:
shouldRotateOrientations in class BaseParticleSystemConfig.Layer


Copyright © 2011. All Rights Reserved.