Class ShaderResource
Inheritance
java.lang.Object
ShaderResource
Syntax
public class ShaderResource
Constructors
ShaderResource(String name, PathHandle pathToShaderDirectory)
Declaration
public ShaderResource(String name, PathHandle pathToShaderDirectory)
Parameters
Type |
Name |
Description |
String |
name |
|
PathHandle |
pathToShaderDirectory |
|
Methods
addShaderSource(ShaderType type, ShaderSource source)
Declaration
public void addShaderSource(ShaderType type, ShaderSource source)
Parameters
decRefs()
Declaration
Returns
finalize()
Declaration
protected void finalize()
getName()
Declaration
Returns
getProgram()
Declaration
Returns
getRefCount()
Declaration
Returns
getShaderSource(String name)
Declaration
public ShaderSource getShaderSource(String name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
Type |
Description |
ShaderSource |
|
getSubPrograms()
Declaration
public HashMap<ShaderType, ShaderSource> getSubPrograms()
Returns
Declaration
public List<String> getUniformNames()
Returns
Type |
Description |
List<String> |
|
Declaration
public HashMap<String, Integer> getUniforms()
Returns
Type |
Description |
HashMap<String, Integer> |
|
Declaration
public List<String> getUniformTypes()
Returns
Type |
Description |
List<String> |
|
incRefs()
Declaration
setProgram(int program)
Declaration
public void setProgram(int program)
Parameters
Type |
Name |
Description |
int |
program |
|
setRefCount(int refCount)
Declaration
public void setRefCount(int refCount)
Parameters
Type |
Name |
Description |
int |
refCount |
|
Declaration
public void setUniformNames(List<String> uniformNames)
Parameters
Type |
Name |
Description |
List<String> |
uniformNames |
|
Declaration
public void setUniforms(Map<String, Integer> uniforms)
Parameters
Type |
Name |
Description |
Map<String, Integer> |
uniforms |
|
Declaration
public void setUniformTypes(List<String> uniformTypes)
Parameters
Type |
Name |
Description |
List<String> |
uniformTypes |
|