com.threerings.opengl.material.config
Class MaterialConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.config.ManagedConfig
          extended by com.threerings.config.ParameterizedConfig
              extended by com.threerings.opengl.material.config.MaterialConfig
All Implemented Interfaces:
ConfigUpdateListener<ManagedConfig>, Exportable, ResourceManager.ModificationObserver, Copyable, Cloneable

public class MaterialConfig
extends ParameterizedConfig

Describes a material.


Nested Class Summary
static class MaterialConfig.Derived
          A derived implementation.
static class MaterialConfig.Implementation
          Contains the actual implementation of the material.
static class MaterialConfig.Original
          An original implementation.
 
Field Summary
 MaterialConfig.Implementation implementation
          The actual material implementation.
 
Fields inherited from class com.threerings.config.ParameterizedConfig
_args, _base, _derived, parameters
 
Fields inherited from class com.threerings.config.ManagedConfig
_cfgmgr, _listeners, _name, _updateConfigs, _updateResources
 
Constructor Summary
MaterialConfig()
           
 
Method Summary
protected  void fireConfigUpdated()
          Fires a configuration updated event.
 TechniqueConfig getTechnique(GlContext ctx, String scheme)
          Finds a technique to render this material.
protected  void getUpdateReferences(ConfigReferenceSet refs)
          Collects all of the references within this config to configs that, when updated, should trigger a call to ManagedConfig.fireConfigUpdated().
 
Methods inherited from class com.threerings.config.ParameterizedConfig
applyArguments, applyArguments, getBound, getInstance, getParameter, getParameter, getReference, maybeFireOnConfigManager, validateOuters, validateReferences, wasUpdated
 
Methods inherited from class com.threerings.config.ManagedConfig
addListener, addUpdateDependencies, clearUpdateDependencies, configUpdated, getConfigManager, getInstance, getInstance, getInstance, getInstance, getName, getUpdateResources, init, removeListener, resourceModified, setName, updateFromSource
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

implementation

@Editable
public MaterialConfig.Implementation implementation
The actual material implementation.

Constructor Detail

MaterialConfig

public MaterialConfig()
Method Detail

getTechnique

public TechniqueConfig getTechnique(GlContext ctx,
                                    String scheme)
Finds a technique to render this material.

Parameters:
scheme - the preferred render scheme to use.

fireConfigUpdated

protected void fireConfigUpdated()
Description copied from class: ManagedConfig
Fires a configuration updated event.

Overrides:
fireConfigUpdated in class ManagedConfig

getUpdateReferences

protected void getUpdateReferences(ConfigReferenceSet refs)
Description copied from class: ManagedConfig
Collects all of the references within this config to configs that, when updated, should trigger a call to ManagedConfig.fireConfigUpdated().

Overrides:
getUpdateReferences in class ManagedConfig