public abstract class BasicUniformManager extends Object implements UniformManager
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
BasicUniformManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addUniforms(Shader shader)
This method will call
UniformManager.registerUniform(org.achtern.AchternEngine.core.rendering.shader.Shader, org.achtern.AchternEngine.core.resource.fileparser.caseclasses.Uniform)
for all uniforms in the Shader. |
void |
setUniform(Shader shader,
Uniform uniform)
This will determine if the uniform should be set and if and only if
will determine the type of value and set the data accordingly.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterUniform, setUniform, setUniform, setUniform, setUniform, setUniform, setUniform, setUniform, setUniform, setUniform, setUniform, setUniform, setUniform, setUniform, setUniform, setUniformpublic void addUniforms(Shader shader)
UniformManagerUniformManager.registerUniform(org.achtern.AchternEngine.core.rendering.shader.Shader, org.achtern.AchternEngine.core.resource.fileparser.caseclasses.Uniform)
for all uniforms in the Shader.addUniforms in interface UniformManagershader - shader to add all uniformspublic void setUniform(Shader shader, Uniform uniform)
UniformManagersetUniform in interface UniformManagershader - assoc. shaderuniform - uniform to set its dataCopyright © 2015. All rights reserved.