com.threerings.opengl.effect.config
Class ParticleSystemConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.model.config.ModelConfig.Implementation
          extended by com.threerings.opengl.effect.config.BaseParticleSystemConfig
              extended by com.threerings.opengl.effect.config.ParticleSystemConfig
All Implemented Interfaces:
Exportable, Copyable, Cloneable

public class ParticleSystemConfig
extends BaseParticleSystemConfig

The configuration of a particle system.


Nested Class Summary
static class ParticleSystemConfig.Alignment
          The different alignment modes.
static class ParticleSystemConfig.GroupPriority
          Controls the order in which layers are rendered within the system.
static class ParticleSystemConfig.Layer
          A single layer of the system.
static class ParticleSystemConfig.Lines
          Renders particles as lines or line strips.
static class ParticleSystemConfig.Meshes
          Renders particles as mesh instances.
static class ParticleSystemConfig.ParticleGeometryConfig
          Determines how particles are rendered.
static class ParticleSystemConfig.Points
          Renders particles as points.
static class ParticleSystemConfig.Quads
          Renders particles as quads or quad strips.
 
Field Summary
 ParticleSystemConfig.Layer[] layers
          The layers comprising the system.
 
Fields inherited from class com.threerings.opengl.effect.config.BaseParticleSystemConfig
boundsExpansion, influences, tickPolicy, warmupGranularity, warmupTime
 
Constructor Summary
ParticleSystemConfig()
           
 
Method Summary
 BaseParticleSystemConfig.Layer[] getLayers()
          Returns a reference to the system's array of layers.
 Model.Implementation getModelImplementation(GlContext ctx, Scope scope, Model.Implementation impl)
          Creates or updates a model implementation for this configuration.
 void getUpdateReferences(ConfigReferenceSet refs)
          Adds the implementation's update references to the provided set.
 void invalidate()
          Invalidates any cached data.
 
Methods inherited from class com.threerings.opengl.effect.config.BaseParticleSystemConfig
anyLayersRespawn
 
Methods inherited from class com.threerings.opengl.model.config.ModelConfig.Implementation
getConfigManager, getOriginal, getParticleGeometry, getParticleMaterial, updateFromSource
 
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

layers

@Editable(editor="table")
public ParticleSystemConfig.Layer[] layers
The layers comprising the system.

Constructor Detail

ParticleSystemConfig

public ParticleSystemConfig()
Method Detail

getLayers

public BaseParticleSystemConfig.Layer[] getLayers()
Description copied from class: BaseParticleSystemConfig
Returns a reference to the system's array of layers.

Specified by:
getLayers in class BaseParticleSystemConfig

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Description copied from class: ModelConfig.Implementation
Adds the implementation's update references to the provided set.

Overrides:
getUpdateReferences in class ModelConfig.Implementation

getModelImplementation

public Model.Implementation getModelImplementation(GlContext ctx,
                                                   Scope scope,
                                                   Model.Implementation impl)
Description copied from class: ModelConfig.Implementation
Creates or updates a model implementation for this configuration.

Specified by:
getModelImplementation in class ModelConfig.Implementation
scope - the model's expression scope.
impl - an existing implementation to reuse, if possible.
Returns:
either a reference to the existing implementation (if reused), a new implementation, or null if no implementation could be created.

invalidate

public void invalidate()
Description copied from class: ModelConfig.Implementation
Invalidates any cached data.

Overrides:
invalidate in class ModelConfig.Implementation


Copyright © 2011. All Rights Reserved.