com.threerings.opengl.util
Class Preloadable

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.util.Preloadable
All Implemented Interfaces:
Copyable, Cloneable
Direct Known Subclasses:
Preloadable.Animation, Preloadable.Config, Preloadable.Model

public abstract class Preloadable
extends DeepObject

Represents a resource to be preloaded and "pinned" in the cache by retaining a strong reference.


Nested Class Summary
static class Preloadable.Animation
          An animation resource.
static class Preloadable.Config
          A generic config resource.
static class Preloadable.Model
          A model resource.
 
Constructor Summary
Preloadable()
           
 
Method Summary
abstract  void preload(GlContext ctx)
          Preloads this resource and creates a reference to it, preventing it from being garbage-collected.
 
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
 

Constructor Detail

Preloadable

public Preloadable()
Method Detail

preload

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



Copyright © 2011. All Rights Reserved.