|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.util.DeepObject
com.threerings.opengl.renderer.config.ShaderStateConfig
com.threerings.opengl.renderer.config.ShaderStateConfig.Enabled
public static class ShaderStateConfig.Enabled
Enables the shader.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.opengl.renderer.config.ShaderStateConfig |
|---|
ShaderStateConfig.Disabled, ShaderStateConfig.Enabled |
| Field Summary | |
|---|---|
ConfigReference<ShaderConfig> |
fragment
The fragment shader to use. |
ConfigReference<ShaderConfig> |
vertex
The vertex shader to use. |
boolean |
vertexProgramTwoSide
Whether or not to enable two-sided vertex program mode. |
| Constructor Summary | |
|---|---|
ShaderStateConfig.Enabled()
|
|
| Method Summary | |
|---|---|
ShaderState |
getState(GlContext ctx,
Scope scope,
RenderState[] states,
List<Updater> updaters)
Returns the corresponding shader state. |
void |
getUpdateReferences(ConfigReferenceSet refs)
Adds the state's update references to the provided set. |
boolean |
isSupported(GlContext ctx,
boolean fallback)
Determines whether this state is supported by the hardware. |
void |
populateDescriptor(GlContext ctx,
PassDescriptor desc)
Populates the relevant portion of the supplied descriptor. |
| 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 |
|---|
@Editable(nullable=true) public ConfigReference<ShaderConfig> vertex
@Editable(nullable=true) public ConfigReference<ShaderConfig> fragment
@Editable public boolean vertexProgramTwoSide
| Constructor Detail |
|---|
public ShaderStateConfig.Enabled()
| Method Detail |
|---|
public void getUpdateReferences(ConfigReferenceSet refs)
ShaderStateConfig
getUpdateReferences in class ShaderStateConfig
public boolean isSupported(GlContext ctx,
boolean fallback)
ShaderStateConfig
isSupported in class ShaderStateConfig
public void populateDescriptor(GlContext ctx,
PassDescriptor desc)
ShaderStateConfig
populateDescriptor in class ShaderStateConfig
public ShaderState getState(GlContext ctx,
Scope scope,
RenderState[] states,
List<Updater> updaters)
ShaderStateConfig
getState in class ShaderStateConfig
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||