ShaderTechnique
Inheritance: java.lang.Object
public class ShaderTechnique
A shader technique represents a concrete rendering implementation.
Constructors
Constructor | Description |
---|---|
ShaderTechnique() | Initializes a new instance of the ShaderTechnique class. |
Methods
Method | Description |
---|---|
addBinding(String property, String shaderParameter) | Binds the dynamic property to shader parameter |
equals(Object arg0) | |
getClass() | |
getDescription() | Gets the description of this technique |
getRenderAPI() | Gets the rendering API used by this technique |
getRenderAPIVersion() | Gets the version of the rendering API. |
getShaderContent() | Gets the content of a embedded shader script. |
getShaderEntry() | Gets the entry point of the shader, some shader like HLSL can have customized shader entries. |
getShaderFile() | Gets the file name of the external shader file. |
getShaderLanguage() | Gets the shader language used by this technique. |
getShaderParameters() | Gets the shader parameter definition. |
getShaderVersion() | Gets the shader version used by this technique. |
hashCode() | |
notify() | |
notifyAll() | |
setDescription(String value) | Sets the description of this technique |
setRenderAPI(String value) | Sets the rendering API used by this technique |
setRenderAPIVersion(String value) | Sets the version of the rendering API. |
setShaderContent(byte[] value) | Sets the content of a embedded shader script. |
setShaderEntry(String value) | Sets the entry point of the shader, some shader like HLSL can have customized shader entries. |
setShaderFile(String value) | Sets the file name of the external shader file. |
setShaderLanguage(String value) | Sets the shader language used by this technique. |
setShaderVersion(String value) | Sets the shader version used by this technique. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
ShaderTechnique()
public ShaderTechnique()
Initializes a new instance of the ShaderTechnique class.
addBinding(String property, String shaderParameter)
public void addBinding(String property, String shaderParameter)
Binds the dynamic property to shader parameter
Parameters:
Parameter | Type | Description |
---|---|---|
property | java.lang.String | The name of the dynamic property. |
shaderParameter | java.lang.String | The name of the shader parameter. |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getDescription()
public String getDescription()
Gets the description of this technique
Returns: java.lang.String
getRenderAPI()
public String getRenderAPI()
Gets the rendering API used by this technique
Returns: java.lang.String
getRenderAPIVersion()
public String getRenderAPIVersion()
Gets the version of the rendering API.
Returns: java.lang.String
getShaderContent()
public byte[] getShaderContent()
Gets the content of a embedded shader script. It could be HLSL/GLSL shader source file.
Returns: byte[]
getShaderEntry()
public String getShaderEntry()
Gets the entry point of the shader, some shader like HLSL can have customized shader entries.
Returns: java.lang.String
getShaderFile()
public String getShaderFile()
Gets the file name of the external shader file.
Returns: java.lang.String
getShaderLanguage()
public String getShaderLanguage()
Gets the shader language used by this technique.
Returns: java.lang.String
getShaderParameters()
public Map<String,String> getShaderParameters()
Gets the shader parameter definition. The key is the name of the dynamic property, and value is the shader parameter name that the property connected to.
Returns: java.util.Map<java.lang.String,java.lang.String>
getShaderVersion()
public String getShaderVersion()
Gets the shader version used by this technique.
Returns: java.lang.String
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setDescription(String value)
public void setDescription(String value)
Sets the description of this technique
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | New value |
setRenderAPI(String value)
public void setRenderAPI(String value)
Sets the rendering API used by this technique
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | New value |
setRenderAPIVersion(String value)
public void setRenderAPIVersion(String value)
Sets the version of the rendering API.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | New value |
setShaderContent(byte[] value)
public void setShaderContent(byte[] value)
Sets the content of a embedded shader script. It could be HLSL/GLSL shader source file.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte[] | New value |
setShaderEntry(String value)
public void setShaderEntry(String value)
Sets the entry point of the shader, some shader like HLSL can have customized shader entries.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | New value |
setShaderFile(String value)
public void setShaderFile(String value)
Sets the file name of the external shader file.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | New value |
setShaderLanguage(String value)
public void setShaderLanguage(String value)
Sets the shader language used by this technique.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | New value |
setShaderVersion(String value)
public void setShaderVersion(String value)
Sets the shader version used by this technique.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | New value |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |