|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectde.grogra.imp3d.glsl.utility.CachedShaderCollection
public class CachedShaderCollection
Interface for all GLSLShaders. Activates / compiles and deletes shaderprograms. Holds a list of all GLSLShaders.
| Constructor Summary | |
|---|---|
CachedShaderCollection()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachedShaderCollection()
| Method Detail |
|---|
public void deleteAll(OpenGLState glState,
boolean javaonly)
shaderCache and shaderMap.
glState -
public void findAndActivateShader(OpenGLState glState,
GLSLDisplay disp,
ShaderConfiguration sc,
Shader s)
shaderCache
glState - current GL instancedisp - active GLDisplay instances - shader that should be activated
public GLSLManagedShader findShader(OpenGLState glState,
GLSLDisplay disp,
ShaderConfiguration sc,
Shader s)
shaderCache
glState - current GL instancedisp - active GLDisplay instances - shader that should be activated
public GLSLManagedShader getCacheEntry(OpenGLState glState,
GLSLDisplay disp,
ShaderConfiguration sc,
java.lang.Object s)
sc - s -
public GLSLManagedShader getCurrentShader()
public void removeUnusedShaders(OpenGLState glState)
shaderCache
glState - public void setCurrentStamp(int stamp)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||