com.threerings.opengl.scene
Class Scene.Transient

java.lang.Object
  extended by com.threerings.expr.DynamicScope
      extended by com.threerings.opengl.model.Model
          extended by com.threerings.opengl.scene.Scene.Transient
All Implemented Interfaces:
ConfigUpdateListener<ModelConfig>, Scope, ScopeUpdateListener, Compositable, SceneElement, SceneObject, Intersectable, Tickable
Enclosing class:
Scene

public static class Scene.Transient
extends Model

Extends the normal model class to include an optional pre-tick updater.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.opengl.model.Model
Model.Implementation
 
Nested classes/interfaces inherited from interface com.threerings.opengl.scene.SceneElement
SceneElement.TickPolicy
 
Field Summary
 
Fields inherited from class com.threerings.opengl.model.Model
DEFINITION_INFLUENCE, FOG_INFLUENCE, LIGHT_INFLUENCE, PROJECTION_INFLUENCE
 
Fields inherited from interface com.threerings.expr.Scope
EPOCH, NOW
 
Constructor Summary
Scene.Transient(GlContext ctx, ConfigReference<ModelConfig> ref)
          Creates a new transient model.
 
Method Summary
 void setUpdater(Updater updater)
          Installs an updater that will be called before each tick.
 void tick(float elapsed)
          Updates the state of this object based on the elapsed time in seconds.
 
Methods inherited from class com.threerings.opengl.model.Model
addObserver, attach, attach, boundsDidChange, boundsWillChange, clearConfig, completed, composite, configUpdated, createAnimation, createAnimation, createAnimation, createAnimation, detach, detachAll, dispose, drawBounds, get, getAnimation, getAnimations, getBounds, getColorState, getConfig, getFogState, getIntersection, getLightState, getLocalTransform, getMaterialConfig, getPlayingAnimations, getPointWorldTransform, getRenderScheme, getScene, getTickPolicy, getUserObject, hasCompleted, isAnimationPlaying, isVisible, removeObserver, reset, setColorState, setConfig, setConfig, setConfig, setConfig, setFogState, setInfluences, setLightState, setLocalTransform, setRenderScheme, setTickPolicy, setUserObject, setVisible, startAnimation, stopAllAnimations, stopAnimation, stopAnimations, tickPolicyDidChange, tickPolicyWillChange, updateBounds, updateLastVisit, wasAdded, wasUpdated, willBeRemoved
 
Methods inherited from class com.threerings.expr.DynamicScope
addListener, endCompoundUpdate, getParentScope, getScopeName, put, remove, removeListener, scopeUpdated, setParentScope, startCompoundUpdate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scene.Transient

public Scene.Transient(GlContext ctx,
                       ConfigReference<ModelConfig> ref)
Creates a new transient model.

Method Detail

setUpdater

public void setUpdater(Updater updater)
Installs an updater that will be called before each tick.


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


Copyright © 2011. All Rights Reserved.