Module gl1

Class GLSLFBOManager

java.lang.Object
de.grogra.glsl.GLSLFBOManager

public class GLSLFBOManager extends Object
A container-class managing all FBOs used in oglslview
Version:
0.1.0
Author:
Konni Hartmann
  • Constructor Details

    • GLSLFBOManager

      public GLSLFBOManager()
  • Method Details

    • 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
    • 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
    • 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.