Class PostProcessorEffect

java.lang.Object
gaiasky.render.postprocess.PostProcessorEffect
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
Direct Known Subclasses:
AccumulationBlur, AnaglyphEffect, Antialiasing, Blend, Bloom, CameraMotionBlur, ChromaticAberration, CrtMonitor, CubmeapProjectionEffect, Curvature, DepthBuffer, DrawTexture, FilmGrain, GravitationalDistortion, LensFlare, Levels, LightGlow, LightScattering, Mosaic, Noise, PseudoLensFlare, RaymarchObject, Reprojection, SSR, SurfaceGen, UnsharpMask, Vignette, WarpingMesh, XBRZ, Zoomer

public abstract class PostProcessorEffect extends Object implements com.badlogic.gdx.utils.Disposable
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    protected com.badlogic.gdx.utils.Array<com.badlogic.gdx.utils.Disposable>
    Array of disposables.
    protected boolean
     
    protected boolean
     
    protected boolean
     
    protected boolean
     
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    Default implementation uses the resources in the disposables list.
    boolean
    Whether this effect is enabled and should be processed.
    boolean
     
    boolean
     
    abstract void
    Concrete objects shall be responsible to recreate or rebind its own resources whenever its needed, usually when the OpenGL context is lost.
    abstract void
    render(com.badlogic.gdx.graphics.glutils.FrameBuffer src, com.badlogic.gdx.graphics.glutils.FrameBuffer dest, GaiaSkyFrameBuffer main)
    Concrete objects shall implement its own rendering, given the source and destination buffers.
    protected void
    restoreViewport(com.badlogic.gdx.graphics.glutils.FrameBuffer dest)
    Convenience method to forward the call to the PostProcessor object while still being a non-publicly accessible method.
    void
    setEnabled(boolean enabled)
    Sets this effect enabled or not.
    void
    setEnabledInCubemap(boolean enabled)
     
    void
    setEnabledInVR(boolean enabled)
     
    void
    setEnabledOptions(boolean enabledInCubemap, boolean enabledInVR)
     
    void
    Re-compiles the shaders of all filters in this effect.

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details Link icon

    • enabled Link icon

      protected boolean enabled
    • enabledInCubemap Link icon

      protected boolean enabledInCubemap
    • enabledInVR Link icon

      protected boolean enabledInVR
    • disposables Link icon

      protected com.badlogic.gdx.utils.Array<com.badlogic.gdx.utils.Disposable> disposables
      Array of disposables.
    • disposed Link icon

      protected boolean disposed
  • Constructor Details Link icon

    • PostProcessorEffect Link icon

      public PostProcessorEffect()
  • Method Details Link icon

    • rebind Link icon

      public abstract void rebind()
      Concrete objects shall be responsible to recreate or rebind its own resources whenever its needed, usually when the OpenGL context is lost. E.g., frame buffer textures should be updated and shader parameters should be re-uploaded/rebound.
    • render Link icon

      public abstract void render(com.badlogic.gdx.graphics.glutils.FrameBuffer src, com.badlogic.gdx.graphics.glutils.FrameBuffer dest, GaiaSkyFrameBuffer main)
      Concrete objects shall implement its own rendering, given the source and destination buffers.
    • isEnabled Link icon

      public boolean isEnabled()
      Whether this effect is enabled and should be processed.
    • setEnabled Link icon

      public void setEnabled(boolean enabled)
      Sets this effect enabled or not.
    • isEnabledInCubemap Link icon

      public boolean isEnabledInCubemap()
    • isEnabledInVR Link icon

      public boolean isEnabledInVR()
    • setEnabledOptions Link icon

      public void setEnabledOptions(boolean enabledInCubemap, boolean enabledInVR)
    • setEnabledInCubemap Link icon

      public void setEnabledInCubemap(boolean enabled)
    • setEnabledInVR Link icon

      public void setEnabledInVR(boolean enabled)
    • restoreViewport Link icon

      protected void restoreViewport(com.badlogic.gdx.graphics.glutils.FrameBuffer dest)
      Convenience method to forward the call to the PostProcessor object while still being a non-publicly accessible method.
    • updateShaders Link icon

      public void updateShaders()
      Re-compiles the shaders of all filters in this effect.
    • dispose Link icon

      public void dispose()
      Default implementation uses the resources in the disposables list.
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable