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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteAll(OpenGLState glState, boolean javaonly) Deletes all associated FBOs and Renderbuffers.voidresize(GLSLDisplay disp, OpenGLState glState) Resizes FBO.protected voidsetupFBO(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.
-