public class ShaderManager
extends java.lang.Object
Constructor and Description |
---|
ShaderManager(IResourceManager resourceManager,
java.lang.String programName) |
Modifier and Type | Method and Description |
---|---|
void |
addSamplerTexture(java.lang.String name,
java.lang.Object samplerTexture) |
void |
deleteShader() |
void |
endShader() |
ShaderLoader |
getFragmentShaderLoader() |
int |
getProgram() |
ShaderUniform |
getShaderUniform(java.lang.String name) |
ShaderUniform |
getShaderUniformOrDefault(java.lang.String name) |
ShaderLoader |
getVertexShaderLoader() |
void |
markDirty() |
void |
useShader() |
public ShaderManager(IResourceManager resourceManager, java.lang.String programName) throws JsonException, java.io.IOException
JsonException
java.io.IOException
public void deleteShader()
public void endShader()
public void useShader()
public void markDirty()
public ShaderUniform getShaderUniform(java.lang.String name)
public ShaderUniform getShaderUniformOrDefault(java.lang.String name)
public void addSamplerTexture(java.lang.String name, java.lang.Object samplerTexture)
public ShaderLoader getVertexShaderLoader()
public ShaderLoader getFragmentShaderLoader()
public int getProgram()