Class AEShaderResource
Inheritance
java.lang.Object
AEShaderResource
Syntax
public class AEShaderResource implements AssetI
Constructors
AEShaderResource(String name, PathHandle pathToShaderDirectory)
Declaration
public AEShaderResource(String name, PathHandle pathToShaderDirectory)
Parameters
| Type |
Name |
Description |
| String |
name |
|
| PathHandle |
pathToShaderDirectory |
|
Methods
addShaderSource(ShaderSource source)
Declaration
public void addShaderSource(ShaderSource source)
Parameters
| Type |
Name |
Description |
| ShaderSource |
source |
|
createProgram()
Declaration
public void createProgram()
decAndGetRef()
Declaration
public int decAndGetRef()
Returns
Overrides
decRef()
Decrements the asset's reference count by one.
Declaration
Overrides
dispose()
Declaration
Overrides
getName()
Declaration
Returns
getPath()
Declaration
public PathHandle getPath()
Returns
getProgram()
Declaration
Returns
getRefCount()
Declaration
Returns
getRefs()
Returns the integer representation of the references.
Declaration
Returns
| Type |
Description |
| int |
The count of refrences.
|
Overrides
getShaderSource(String name)
Declaration
public ShaderSource getShaderSource(String name)
Parameters
| Type |
Name |
Description |
| String |
name |
|
Returns
| Type |
Description |
| ShaderSource |
|
getSubPrograms()
Declaration
public HashMap<String, ShaderSource> getSubPrograms()
Returns
| Type |
Description |
| HashMap<String, ShaderSource> |
|
getUbos()
Declaration
public Map<Integer, GLSLUniformBlockObject> getUbos()
Returns
Declaration
public Map<String, GLSLUniform> getUniforms()
Returns
incAndGetRef()
Declaration
public int incAndGetRef()
Returns
Overrides
incRef()
Increments the asset's reference count by one.
Declaration
Overrides
setName(String name)
Declaration
public void setName(String name)
Parameters
| Type |
Name |
Description |
| String |
name |
|
setPath(PathHandle path)
Declaration
public void setPath(PathHandle path)
Parameters
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 |
|
setSubPrograms(HashMap<String, ShaderSource> subPrograms)
Declaration
public void setSubPrograms(HashMap<String, ShaderSource> subPrograms)
Parameters
| Type |
Name |
Description |
| HashMap<String, ShaderSource> |
subPrograms |
|
Declaration
public void setUbos(Map<Integer, GLSLUniformBlockObject> ubos)
Parameters
Declaration
public void setUniforms(Map<String, GLSLUniform> uniforms)
Parameters
| Type |
Name |
Description |
| Map<String, GLSLUniform> |
uniforms |
|