|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.loaders.shaders.impl.glsl.GLSLShaderLoader.InlineVariableMapping
public static final class GLSLShaderLoader.InlineVariableMapping
This defines a mapping for placeholders in a shader source, that are replaced by the provided values. The value is converted to a String through the toString() method.
| Constructor Summary | |
|---|---|
GLSLShaderLoader.InlineVariableMapping(java.lang.String variableName,
java.lang.Object value)
Creates a new mapping. |
|
| Method Summary | |
|---|---|
java.lang.String |
getSearchString()
Returns ${variableName}. |
java.lang.Object |
getValue()
Returns the raw value. |
java.lang.String |
getValueAsString()
Returns the value converted to a String. |
java.lang.String |
getVariableName()
Returns the variable name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GLSLShaderLoader.InlineVariableMapping(java.lang.String variableName,
java.lang.Object value)
variableName - the name of the variabled as noted in the shader source.
If this name is e.g. MY_VARIABLE, it is searched for as ${MY_VARIABLE}.
Hence you must never use ${} for this name at this place.value - the raw value, which is converted to a String through the toString() method.| Method Detail |
|---|
public final java.lang.String getVariableName()
public final java.lang.String getSearchString()
public final java.lang.Object getValue()
public final java.lang.String getValueAsString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||