de.grogra.imp3d.glsl
Class GLSLFBOManager

java.lang.Object
  extended by de.grogra.imp3d.glsl.GLSLFBOManager

public class GLSLFBOManager
extends java.lang.Object

A container-class managing all FBOs used in oglslview

Author:
Konni Hartmann

Constructor Summary
GLSLFBOManager()
           
 
Method Summary
 void 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLSLFBOManager

public GLSLFBOManager()
Method Detail

deleteAll

public void deleteAll(OpenGLState glState,
                      boolean javaonly)
Deletes all associated FBOs and Renderbuffers.

Parameters:
glState - Current OpenGLState.
javaonly - true, if only Java-Side of OpenGL-Objects should be deleted.

resize

public void resize(GLSLDisplay disp,
                   OpenGLState glState)
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 resolution
glState - New GL context

setupFBO

protected void setupFBO(OpenGLState glState)
Setup FBO for the first renderpass. This means depthbuffer plus 4 textures as rendertargets.

Parameters:
glState - The OpenGLState for the current active GLContext