com.threerings.opengl.effect.config
Class MetaParticleSystemConfig

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.MetaParticleSystemConfig
All Implemented Interfaces:
Exportable, Copyable, Cloneable

public class MetaParticleSystemConfig
extends BaseParticleSystemConfig

The configuration of a meta particle system (like a particle system, but each particle is a model instance).


Nested Class Summary
static class MetaParticleSystemConfig.Alignment
          The different alignment modes.
static class MetaParticleSystemConfig.Layer
          A single layer of the system.
 
Field Summary
 MetaParticleSystemConfig.Layer[] layers
          The layers comprising the system.
 
Fields inherited from class com.threerings.opengl.effect.config.BaseParticleSystemConfig
boundsExpansion, influences, tickPolicy, warmupGranularity, warmupTime
 
Constructor Summary
MetaParticleSystemConfig()
           
 
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.
 
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, getUpdateReferences, invalidate, 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 MetaParticleSystemConfig.Layer[] layers
The layers comprising the system.

Constructor Detail

MetaParticleSystemConfig

public MetaParticleSystemConfig()
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

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.


Copyright © 2011. All Rights Reserved.