|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.expr.SimpleScope
com.threerings.opengl.material.Surface
public class Surface
A renderable surface.
| Field Summary | |
|---|---|
protected Matrix4f[] |
_boneMatrices
The bone matrices, if any. |
protected Compositable |
_compositable
The compositable created from the configs. |
protected GlContext |
_ctx
The application context. |
protected Geometry |
_geometry
The surface geometry. |
protected GeometryConfig |
_geometryConfig
The configuration of the surface geometry (or null, if the geometry didn't come from a config). |
protected RenderQueue.Group |
_group
The group into which we enqueue our batches. |
protected MaterialConfig |
_materialConfig
The configuration of the surface material. |
protected static TechniqueConfig |
BLANK_TECHNIQUE
A technique that renders the material as blank. |
| Fields inherited from class com.threerings.expr.SimpleScope |
|---|
_parentScope |
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
|
Surface(GlContext ctx,
Scope parentScope,
GeometryConfig geometryConfig,
MaterialConfig materialConfig)
Creates a new surface. |
protected |
Surface(GlContext ctx,
Scope parentScope,
GeometryConfig geometryConfig,
MaterialConfig materialConfig,
Geometry geometry,
RenderQueue.Group group)
Creates a new surface. |
|
Surface(GlContext ctx,
Scope parentScope,
GeometryConfig geometryConfig,
MaterialConfig materialConfig,
RenderQueue.Group group)
Creates a new surface. |
|
Surface(GlContext ctx,
Scope parentScope,
Geometry geometry,
MaterialConfig materialConfig)
Creates a new surface. |
|
Surface(GlContext ctx,
Scope parentScope,
Geometry geometry,
MaterialConfig materialConfig,
RenderQueue.Group group)
Creates a new surface. |
| Method Summary | |
|---|---|
void |
composite()
Adds this object's Dependencys and Enqueueables to the compositor in
preparation for rendering. |
void |
configUpdated(ConfigEvent<MaterialConfig> event)
Called when a configuration has been updated. |
void |
dispose()
Releases the resources associated with this scope. |
MaterialConfig |
getMaterialConfig()
Returns a reference to this surface's material configuration. |
String |
getScopeName()
Returns the name of this scope for purposes of qualification. |
void |
setMaterialConfig(MaterialConfig config)
Sets the material configuration of this surface. |
protected void |
updateFromConfigs()
Updates the surface to match its new or modified configurations. |
| Methods inherited from class com.threerings.expr.SimpleScope |
|---|
addListener, get, getParentScope, removeListener, scopeUpdated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected GlContext _ctx
protected GeometryConfig _geometryConfig
protected MaterialConfig _materialConfig
@Scoped protected Matrix4f[] _boneMatrices
protected Geometry _geometry
protected RenderQueue.Group _group
protected Compositable _compositable
protected static final TechniqueConfig BLANK_TECHNIQUE
| Constructor Detail |
|---|
public Surface(GlContext ctx,
Scope parentScope,
GeometryConfig geometryConfig,
MaterialConfig materialConfig)
public Surface(GlContext ctx,
Scope parentScope,
GeometryConfig geometryConfig,
MaterialConfig materialConfig,
RenderQueue.Group group)
public Surface(GlContext ctx,
Scope parentScope,
Geometry geometry,
MaterialConfig materialConfig)
public Surface(GlContext ctx,
Scope parentScope,
Geometry geometry,
MaterialConfig materialConfig,
RenderQueue.Group group)
protected Surface(GlContext ctx,
Scope parentScope,
GeometryConfig geometryConfig,
MaterialConfig materialConfig,
Geometry geometry,
RenderQueue.Group group)
| Method Detail |
|---|
public void setMaterialConfig(MaterialConfig config)
public MaterialConfig getMaterialConfig()
public void composite()
CompositableDependencys and Enqueueables to the compositor in
preparation for rendering.
composite in interface Compositablepublic void configUpdated(ConfigEvent<MaterialConfig> event)
ConfigUpdateListener
configUpdated in interface ConfigUpdateListener<MaterialConfig>public String getScopeName()
Scopenull
if qualified symbols cannot specifically address this scope.
getScopeName in interface ScopegetScopeName in class SimpleScopepublic void dispose()
SimpleScope
dispose in class SimpleScopeprotected void updateFromConfigs()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||