com.threerings.opengl.model.config
Class StaticSetConfig
java.lang.Object
com.threerings.util.DeepObject
com.threerings.opengl.model.config.ModelConfig.Implementation
com.threerings.opengl.model.config.ModelConfig.Imported
com.threerings.opengl.model.config.StaticSetConfig
- All Implemented Interfaces:
- Exportable, Copyable, Cloneable
public class StaticSetConfig
- extends ModelConfig.Imported
An original static set implementation.
model
@Editable(editor="choice",
depends="source")
public String model
- The selected model.
meshes
@Shallow
public TreeMap<String,ModelConfig.MeshSet> meshes
- Maps top-level node names to meshes.
StaticSetConfig
public StaticSetConfig()
getModelOptions
public String[] getModelOptions()
- Returns the options for the model field.
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.
- Overrides:
getModelImplementation in class ModelConfig.Imported
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.
invalidate
public void invalidate()
- Description copied from class:
ModelConfig.Implementation
- Invalidates any cached data.
- Overrides:
invalidate in class ModelConfig.Implementation
Copyright © 2011. All Rights Reserved.