de.grogra.imp3d.glsl.utility
public class CachedShaderCollection extends java.lang.Object
| Constructor and Description |
|---|
CachedShaderCollection() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAll(OpenGLState glState,
boolean javaonly)
Remove all compiled Shaders from
shaderCache and shaderMap. |
void |
findAndActivateShader(OpenGLState glState,
GLSLDisplay disp,
ShaderConfiguration sc,
Shader s)
Will obtain and activate a GLSLShader to emulate the input shaders
behavior.
|
GLSLManagedShader |
findShader(OpenGLState glState,
GLSLDisplay disp,
ShaderConfiguration sc,
Shader s)
Will obtain a GLSLShader to emulate the input shaders
behavior.
|
GLSLManagedShader |
getCacheEntry(OpenGLState glState,
GLSLDisplay disp,
ShaderConfiguration sc,
java.lang.Object s)
Retrieve the cached entry for a Configuration/Object-Pair.
|
GLSLManagedShader |
getCurrentShader()
Get current active GLSLShader.
|
void |
removeUnusedShaders(OpenGLState glState)
Removes unused GLSLShaders from
shaderCache |
void |
setCurrentStamp(int stamp) |
public void deleteAll(OpenGLState glState, boolean javaonly)
shaderCache and shaderMap.glState - public void findAndActivateShader(OpenGLState glState, GLSLDisplay disp, ShaderConfiguration sc, Shader s)
shaderCacheglState - current GL instancedisp - active GLDisplay instances - shader that should be activatedpublic GLSLManagedShader findShader(OpenGLState glState, GLSLDisplay disp, ShaderConfiguration sc, Shader s)
shaderCacheglState - current GL instancedisp - active GLDisplay instances - shader that should be activatedpublic GLSLManagedShader getCacheEntry(OpenGLState glState, GLSLDisplay disp, ShaderConfiguration sc, java.lang.Object s)
sc - s - public GLSLManagedShader getCurrentShader()
public void removeUnusedShaders(OpenGLState glState)
shaderCacheglState - public void setCurrentStamp(int stamp)