ShaderSet
Inheritance: java.lang.Object
All Implemented Interfaces: java.io.Closeable
public class ShaderSet implements Closeable
Shader programs for each kind of materials
Constructors
Constructor | Description |
---|---|
ShaderSet() | Construct the instance of ShaderSet |
Methods
Method | Description |
---|---|
close() | Dispose this instance and release all shader programs. |
equals(Object arg0) | |
getClass() | |
getFallback() | Gets the fallback shader when required shader is unavailable |
getLambert() | Gets the shader that used to render the lambert material |
getPbr() | Gets the shader that used to render the PBR material |
getPhong() | Gets the shader that used to render the phong material |
hashCode() | |
notify() | |
notifyAll() | |
setFallback(ShaderProgram value) | Sets the fallback shader when required shader is unavailable |
setLambert(ShaderProgram value) | Sets the shader that used to render the lambert material |
setPbr(ShaderProgram value) | Sets the shader that used to render the PBR material |
setPhong(ShaderProgram value) | Sets the shader that used to render the phong material |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
ShaderSet()
public ShaderSet()
Construct the instance of ShaderSet
close()
public void close()
Dispose this instance and release all shader programs.
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
getFallback()
public ShaderProgram getFallback()
Gets the fallback shader when required shader is unavailable
Returns: ShaderProgram
getLambert()
public ShaderProgram getLambert()
Gets the shader that used to render the lambert material
Returns: ShaderProgram
getPbr()
public ShaderProgram getPbr()
Gets the shader that used to render the PBR material
Returns: ShaderProgram
getPhong()
public ShaderProgram getPhong()
Gets the shader that used to render the phong material
Returns: ShaderProgram
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setFallback(ShaderProgram value)
public void setFallback(ShaderProgram value)
Sets the fallback shader when required shader is unavailable
Parameters:
Parameter | Type | Description |
---|---|---|
value | ShaderProgram | New value |
setLambert(ShaderProgram value)
public void setLambert(ShaderProgram value)
Sets the shader that used to render the lambert material
Parameters:
Parameter | Type | Description |
---|---|---|
value | ShaderProgram | New value |
setPbr(ShaderProgram value)
public void setPbr(ShaderProgram value)
Sets the shader that used to render the PBR material
Parameters:
Parameter | Type | Description |
---|---|---|
value | ShaderProgram | New value |
setPhong(ShaderProgram value)
public void setPhong(ShaderProgram value)
Sets the shader that used to render the phong material
Parameters:
Parameter | Type | Description |
---|---|---|
value | ShaderProgram | 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 |