Class PostProcessorEffect
- java.lang.Object
-
- gaiasky.util.gdx.contrib.postprocess.PostProcessorEffect
-
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
- Direct Known Subclasses:
AccumulationBlur
,Anaglyphic
,Antialiasing
,Bloom
,CameraMotion
,CrtMonitor
,CubemapProjections
,Curvature
,DepthBuffer
,Fisheye
,Fuzzy
,GeometryWarp
,GravitationalDistortion
,LensFlare2
,Levels
,LightGlow
,LightScattering
,Raymarching
,Vignette
,Zoomer
public abstract class PostProcessorEffect extends java.lang.Object implements com.badlogic.gdx.utils.Disposable
This interface defines the base class for the concrete implementation of post-processor effects. An effect is considered enabled by default.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
enabled
-
Constructor Summary
Constructors Constructor Description PostProcessorEffect()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
isEnabled()
Whether or not this effect is enabled and should be processedabstract void
rebind()
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 implements 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 methodvoid
setEnabled(boolean enabled)
Sets this effect enabled or not
-
-
-
Method Detail
-
rebind
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. Eg., framebuffer textures should be updated and shader parameters should be reuploaded/rebound.
-
render
public abstract void render(com.badlogic.gdx.graphics.glutils.FrameBuffer src, com.badlogic.gdx.graphics.glutils.FrameBuffer dest, GaiaSkyFrameBuffer main)
Concrete objects shall implements its own rendering, given the source and destination buffers.
-
isEnabled
public boolean isEnabled()
Whether or not this effect is enabled and should be processed
-
setEnabled
public void setEnabled(boolean enabled)
Sets this effect enabled or not
-
restoreViewport
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
-
-