|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.expr.SimpleScope
com.threerings.opengl.effect.BaseParticleSystem.Layer
com.threerings.opengl.effect.MetaParticleSystem.Layer
public static class MetaParticleSystem.Layer
A single layer of the system.
| Field Summary | |
|---|---|
protected Model[] |
_models
The models corresponding to each particle. |
protected Vector3f |
_r
Holds the axis vectors. |
protected Vector3f |
_s
Holds the axis vectors. |
protected Vector3f |
_t
Holds the axis vectors. |
protected Vector3f |
_view
Holds the view vector. |
protected Transform3D |
_viewTransform
The layer's view transform. |
protected Quaternion |
_vrot
Holds the view rotation. |
| Fields inherited from class com.threerings.opengl.effect.BaseParticleSystem.Layer |
|---|
_bounds, _colorState, _completed, _config, _counter, _ctx, _geometryRadius, _influences, _living, _parentBounds, _parentViewTransform, _parentWorldTransform, _particles, _placer, _preliving, _shooter, _total, _worldTransform, _worldTransformInv, _wrot |
| Fields inherited from class com.threerings.expr.SimpleScope |
|---|
_parentScope |
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
MetaParticleSystem.Layer(GlContext ctx,
Scope parentScope,
BaseParticleSystemConfig.Layer config)
Creates a new layer. |
|
| Method Summary | |
|---|---|
void |
composite()
Composites the layer for rendering. |
void |
dispose()
Releases the resources associated with this scope. |
void |
enqueue()
Enqueues this object for rendering. |
protected void |
initParticle(int idx)
Initializes the particle at the specified index. |
void |
setConfig(BaseParticleSystemConfig.Layer config)
Sets the layer's config. |
protected void |
swapParticles(int idx0,
int idx1)
Swaps the two particles at the specified indices. |
boolean |
tick(float elapsed)
Updates the current particle state based on the elapsed time in seconds. |
| Methods inherited from class com.threerings.opengl.effect.BaseParticleSystem.Layer |
|---|
addBounds, drawBounds, getCamera, getConfig, getScopeName, pointToLayer, reset, rotationToLayer, vectorToLayer |
| Methods inherited from class com.threerings.expr.SimpleScope |
|---|
addListener, get, getParentScope, removeListener, scopeUpdated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Model[] _models
@Scoped protected Transform3D _viewTransform
protected Quaternion _vrot
protected Vector3f _view
protected Vector3f _s
protected Vector3f _t
protected Vector3f _r
| Constructor Detail |
|---|
public MetaParticleSystem.Layer(GlContext ctx,
Scope parentScope,
BaseParticleSystemConfig.Layer config)
| Method Detail |
|---|
public void enqueue()
Enqueueable
enqueue in interface Enqueueablepublic void setConfig(BaseParticleSystemConfig.Layer config)
BaseParticleSystem.Layer
setConfig in class BaseParticleSystem.Layerpublic boolean tick(float elapsed)
BaseParticleSystem.Layer
tick in class BaseParticleSystem.Layerpublic void composite()
BaseParticleSystem.Layer
composite in class BaseParticleSystem.Layerpublic void dispose()
SimpleScope
dispose in class SimpleScope
protected void swapParticles(int idx0,
int idx1)
BaseParticleSystem.Layer
swapParticles in class BaseParticleSystem.Layerprotected void initParticle(int idx)
BaseParticleSystem.Layer
initParticle in class BaseParticleSystem.Layer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||