com.threerings.opengl.util
Class Preloadable.Config

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

public static class Preloadable.Config
extends Preloadable

A generic config resource.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.opengl.util.Preloadable
Preloadable.Animation, Preloadable.Config, Preloadable.Model
 
Constructor Summary
Preloadable.Config(Class<T> clazz, ConfigReference<T> ref)
          Creates a new config resource.
Preloadable.Config(Class<T> clazz, String name)
          Creates a new config resource.
 
Method Summary
 Class<ManagedConfig> getConfigClass()
          Returns a reference to the config class.
 ConfigReference<ManagedConfig> getReference()
          Returns a reference to the 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
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Preloadable.Config

public Preloadable.Config(Class<T> clazz,
                          String name)
Creates a new config resource.


Preloadable.Config

public Preloadable.Config(Class<T> clazz,
                          ConfigReference<T> ref)
Creates a new config resource.

Method Detail

getConfigClass

public Class<ManagedConfig> getConfigClass()
Returns a reference to the config class.


getReference

public ConfigReference<ManagedConfig> getReference()
Returns a reference to the 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


Copyright © 2011. All Rights Reserved.