com.threerings.opengl.util
Class Preloadable.Animation

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.util.Preloadable
          extended by com.threerings.opengl.util.Preloadable.Animation
All Implemented Interfaces:
Copyable, Cloneable
Enclosing class:
Preloadable

public static class Preloadable.Animation
extends Preloadable

An animation resource.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.opengl.util.Preloadable
Preloadable.Animation, Preloadable.Config, Preloadable.Model
 
Field Summary
protected  Animation _anim
          The animation prototype.
protected  ConfigReference<AnimationConfig> _ref
          The animation config reference.
 
Constructor Summary
Preloadable.Animation(ConfigReference<AnimationConfig> ref)
          Creates a new model resource.
 
Method Summary
 ConfigReference<AnimationConfig> getReference()
          Returns a reference to the animation config reference.
 void preload(GlContext ctx)
          Preloads this resource and creates a reference to it, preventing it from being garbage-collected.
 String toString()
           
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_ref

protected ConfigReference<AnimationConfig> _ref
The animation config reference.


_anim

@DeepOmit
protected Animation _anim
The animation prototype.

Constructor Detail

Preloadable.Animation

public Preloadable.Animation(ConfigReference<AnimationConfig> ref)
Creates a new model resource.

Method Detail

getReference

public ConfigReference<AnimationConfig> getReference()
Returns a reference to the animation config reference.


preload

public void preload(GlContext ctx)
Description copied from class: Preloadable
Preloads this resource and creates a reference to it, preventing it from being garbage-collected.

Specified by:
preload in class Preloadable

toString

public String toString()
Overrides:
toString in class DeepObject