java.lang.Object
de.grogra.glsl.GLSLFBOManager
A container-class managing all FBOs used in oglslview
- Version:
- 0.1.0
- Author:
- Konni Hartmann
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteAll
(OpenGLState glState, boolean javaonly) Deletes all associated FBOs and Renderbuffers.void
resize
(GLSLDisplay disp, OpenGLState glState) Resizes FBO.protected void
setupFBO
(OpenGLState glState) Setup FBO for the first renderpass.
-
Constructor Details
-
GLSLFBOManager
public GLSLFBOManager()
-
-
Method Details
-
setupFBO
Setup FBO for the first renderpass. This means depthbuffer plus 4 textures as rendertargets.- Parameters:
glState
- The OpenGLState for the current active GLContext
-
resize
Resizes FBO. If View is resized associated FBO use wrong sizes. To fix this the FBOs are deleted and recreated.- Parameters:
disp
- Display object to get new resolutionglState
- New GL context
-
deleteAll
Deletes all associated FBOs and Renderbuffers.- Parameters:
glState
- Current OpenGLState.javaonly
- true, if only Java-Side of OpenGL-Objects should be deleted.
-