com.threerings.opengl.model.config
Class ModelConfig.Schemed

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.model.config.ModelConfig.Implementation
          extended by com.threerings.opengl.model.config.ModelConfig.Schemed
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
ModelConfig

public static class ModelConfig.Schemed
extends ModelConfig.Implementation

Chooses different models based on the render scheme.


Field Summary
 ModelConfig.SchemedModel[] models
          The models and their associated render schemes.
 
Constructor Summary
ModelConfig.Schemed()
           
 
Method Summary
 Model.Implementation getModelImplementation(GlContext ctx, Scope scope, Model.Implementation impl)
          Creates or updates a model implementation for this configuration.
 void getUpdateReferences(ConfigReferenceSet refs)
          Adds the implementation's update references to the provided set.
 
Methods inherited from class com.threerings.opengl.model.config.ModelConfig.Implementation
getConfigManager, getOriginal, getParticleGeometry, getParticleMaterial, invalidate, updateFromSource
 
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
 

Field Detail

models

@Editable
public ModelConfig.SchemedModel[] models
The models and their associated render schemes.

Constructor Detail

ModelConfig.Schemed

public ModelConfig.Schemed()
Method Detail

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Description copied from class: ModelConfig.Implementation
Adds the implementation's update references to the provided set.

Overrides:
getUpdateReferences in class ModelConfig.Implementation

getModelImplementation

public Model.Implementation getModelImplementation(GlContext ctx,
                                                   Scope scope,
                                                   Model.Implementation impl)
Description copied from class: ModelConfig.Implementation
Creates or updates a model implementation for this configuration.

Specified by:
getModelImplementation in class ModelConfig.Implementation
scope - the model's expression scope.
impl - an existing implementation to reuse, if possible.
Returns:
either a reference to the existing implementation (if reused), a new implementation, or null if no implementation could be created.


Copyright © 2011. All Rights Reserved.