com.threerings.tudey.shape.config
Class ShapeModelConfig
java.lang.Object
com.threerings.util.DeepObject
com.threerings.opengl.model.config.ModelConfig.Implementation
com.threerings.tudey.shape.config.ShapeModelConfig
- All Implemented Interfaces:
- Exportable, Copyable, Cloneable
public class ShapeModelConfig
- extends ModelConfig.Implementation
A model implementation that depicts a 2D shape.
|
Field Summary |
boolean |
outline
Whether or not to render the shape as an outline. |
ShapeConfig |
shape
The shape to depict. |
outline
@Editable
public boolean outline
- Whether or not to render the shape as an outline.
shape
@Editable
public ShapeConfig shape
- The shape to depict.
ShapeModelConfig
public ShapeModelConfig()
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.
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.