Class ShaderProgramFactory
java.lang.Object
com.marginallyclever.ro3.apps.viewport.ShaderProgramFactory
Maintains a list of the loaded
ShaderProgram
and prevents duplication. Also provides a centralized place to
destroy them when the OpenGL context goes away.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateShaderProgram
(com.jogamp.opengl.GL3 gl, String type) void
Deletes (but does not clear) all the shader programs.
-
Constructor Details
-
ShaderProgramFactory
public ShaderProgramFactory()
-
-
Method Details
-
createShaderProgram
-
deleteAll
public void deleteAll()Deletes (but does not clear) all the shader programs.
-