Module gl1

Class RenderPass

java.lang.Object
de.grogra.glsl.renderpass.RenderPass
Direct Known Subclasses:
DepthPeelingPass, DepthPeelingPass, ExtractLayerPass, ExtractLayerPass, FullQualityRenderPass, FullQualityRenderPass, FullRenderPass, PresentDebugImagePass, PresentDebugImagePass, PresentScenePass, PresentScenePass, ProcessLightingPass, ProcessLightingPass, ShadowMapGenerationPass

public abstract class RenderPass extends Object
  • Field Details

  • Constructor Details

    • RenderPass

      public RenderPass()
  • Method Details

    • getID

      protected int getID()
    • postDrawCallback

      public void postDrawCallback(Drawable dr, OpenGLState glState, GLSLDisplay disp)
    • renderVector

      public void renderVector(GLSLDisplay disp, Matrix4d worldToView, boolean normal, Vector<Drawable> cache)
    • renderAndUpdateVector

      public void renderAndUpdateVector(GLSLDisplay disp, Matrix4d worldToView, Vector<Drawable> cache)
    • deactivateTextures

      public static void deactivateTextures(javax.media.opengl.GL gl, int cnt)
    • deactivateTextures

      public static void deactivateTextures(javax.media.opengl.GL gl, int cnt, int type)
      Deactivate Texture bindings from Texture-offset to Texture-cnt+offset
      Parameters:
      cnt - Number of Textures that should be deactivated
      type -
    • activateTextures

      public static void activateTextures(javax.media.opengl.GL gl, int[] img, int cnt)
    • activateTextures

      public static void activateTextures(javax.media.opengl.GL gl, int[] img, int cnt, int type)
      Bind Textures present in img-Array. Up to cnt Textures are bound
      Parameters:
      img - Array containing ids for OpenGL Textures.
      cnt - Maximum number of Textures that will be activated starting with img[0].
      type -
    • setMatrix

      public void setMatrix(OpenGLState glState, int where, Matrix4d which)
    • resetMatrix

      public void resetMatrix(OpenGLState glState, int count)
    • ViewOrtho

      public static void ViewOrtho(OpenGLState glState)
    • ViewOrtho

      public static void ViewOrtho(OpenGLState glState, int width, int height)
      construct an orthogranal view matrix for easing full screen quad drawing
    • ViewPerspective

      public static void ViewPerspective(OpenGLState glState)
      change view matrix back to default
    • drawPrjQuad

      public static void drawPrjQuad(OpenGLState glState, Camera c)
    • drawPrjQuad

      public static void drawPrjQuad(OpenGLState glState, Camera c, float x, float y, float width, float height)
    • drawPrjQuad

      public static void drawPrjQuad(OpenGLState glState, Camera c, float x, float y, float width, float height, double angle)
      Draw a fullscreen Quad (only useful in orthogonal mode)
      Parameters:
      c -
    • drawPrjQuadParallel

      public static void drawPrjQuadParallel(OpenGLState glState, Camera c, float x, float y, float width, float height, double projectionWidth)
      Draw a fullscreen Quad (only useful in orthogonal mode)
      Parameters:
      c -
    • prologue

      protected abstract void prologue(GLSLDisplay disp, OpenGLState glState, Object data)
    • render

      protected abstract void render(GLSLDisplay disp, OpenGLState glState, Object data)
    • epilogue

      protected abstract void epilogue(GLSLDisplay disp, OpenGLState glState, Object data)
    • process

      public void process(GLSLDisplay disp, OpenGLState glState, Object data)