ShaderTechnique

Inheritance: java.lang.Object

public class ShaderTechnique

A shader technique represents a concrete rendering implementation.

Constructors

ConstructorDescription
ShaderTechnique()Initializes a new instance of the ShaderTechnique class.

Methods

MethodDescription
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:

ParameterTypeDescription
propertyjava.lang.StringThe name of the dynamic property.
shaderParameterjava.lang.StringThe name of the shader parameter.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.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:

ParameterTypeDescription
valuejava.lang.StringNew value

setRenderAPI(String value)

public void setRenderAPI(String value)

Sets the rendering API used by this technique

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

setRenderAPIVersion(String value)

public void setRenderAPIVersion(String value)

Sets the version of the rendering API.

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew 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:

ParameterTypeDescription
valuebyte[]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:

ParameterTypeDescription
valuejava.lang.StringNew value

setShaderFile(String value)

public void setShaderFile(String value)

Sets the file name of the external shader file.

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

setShaderLanguage(String value)

public void setShaderLanguage(String value)

Sets the shader language used by this technique.

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

setShaderVersion(String value)

public void setShaderVersion(String value)

Sets the shader version used by this technique.

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int