com.threerings.opengl.effect
Class BaseParticleSystem

java.lang.Object
  extended by com.threerings.expr.SimpleScope
      extended by com.threerings.opengl.model.Model.Implementation
          extended by com.threerings.opengl.effect.BaseParticleSystem
All Implemented Interfaces:
Scope, ScopeUpdateListener, Compositable, Enqueueable, Intersectable, Tickable
Direct Known Subclasses:
MetaParticleSystem, ParticleSystem

public abstract class BaseParticleSystem
extends Model.Implementation
implements Enqueueable

Base class for ParticleSystem and MetaParticleSystem.


Nested Class Summary
static class BaseParticleSystem.Layer
          A single layer of the system.
 
Field Summary
 
Fields inherited from interface com.threerings.expr.Scope
EPOCH, NOW
 
Constructor Summary
BaseParticleSystem(GlContext ctx, Scope parentScope)
          Creates a new particle system implementation.
 
Method Summary
 void composite()
          Adds this object's Dependencys and Enqueueables to the compositor in preparation for rendering.
 void drawBounds()
          Draws the bounds of the model in immediate mode.
 void enqueue()
          Enqueues this object for rendering.
 Box getBounds()
          Returns a reference to the bounds of the model.
 int getInfluenceFlags()
          Returns a set of flags indicating the types of influences that affect the model.
 SceneElement.TickPolicy getTickPolicy()
          Returns the tick policy of the model.
 boolean hasCompleted()
          Determines whether the model (such as a transient effect) has completed.
 void reset()
          Resets the state of this model.
 void setConfig(BaseParticleSystemConfig config)
          Sets the configuration of this system.
 void tick(float elapsed)
          Updates the state of this object based on the elapsed time in seconds.
 void updateBounds()
          Updates the bounds of the model.
 
Methods inherited from class com.threerings.opengl.model.Model.Implementation
attach, createAnimation, detach, detachAll, getAnimation, getAnimations, getIntersection, getPlayingAnimations, getPointWorldTransform, getScopeName, isImplementation, setTickPolicy, wasAdded, willBeRemoved
 
Methods inherited from class com.threerings.expr.SimpleScope
addListener, dispose, get, getParentScope, removeListener, scopeUpdated
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseParticleSystem

public BaseParticleSystem(GlContext ctx,
                          Scope parentScope)
Creates a new particle system implementation.

Method Detail

setConfig

public void setConfig(BaseParticleSystemConfig config)
Sets the configuration of this system.


enqueue

public void enqueue()
Description copied from interface: Enqueueable
Enqueues this object for rendering.

Specified by:
enqueue in interface Enqueueable

hasCompleted

public boolean hasCompleted()
Description copied from class: Model.Implementation
Determines whether the model (such as a transient effect) has completed.

Overrides:
hasCompleted in class Model.Implementation

reset

public void reset()
Description copied from class: Model.Implementation
Resets the state of this model.

Overrides:
reset in class Model.Implementation

getInfluenceFlags

public int getInfluenceFlags()
Description copied from class: Model.Implementation
Returns a set of flags indicating the types of influences that affect the model.

Overrides:
getInfluenceFlags in class Model.Implementation

getBounds

public Box getBounds()
Description copied from class: Model.Implementation
Returns a reference to the bounds of the model.

Overrides:
getBounds in class Model.Implementation

updateBounds

public void updateBounds()
Description copied from class: Model.Implementation
Updates the bounds of the model.

Overrides:
updateBounds in class Model.Implementation

drawBounds

public void drawBounds()
Description copied from class: Model.Implementation
Draws the bounds of the model in immediate mode.

Overrides:
drawBounds in class Model.Implementation

getTickPolicy

public SceneElement.TickPolicy getTickPolicy()
Description copied from class: Model.Implementation
Returns the tick policy of the model.

Overrides:
getTickPolicy in class Model.Implementation

tick

public void tick(float elapsed)
Description copied from interface: Tickable
Updates the state of this object based on the elapsed time in seconds.

Specified by:
tick in interface Tickable
Overrides:
tick in class Model.Implementation

composite

public void composite()
Description copied from interface: Compositable
Adds this object's Dependencys and Enqueueables to the compositor in preparation for rendering.

Specified by:
composite in interface Compositable
Overrides:
composite in class Model.Implementation


Copyright © 2011. All Rights Reserved.