Package gaiasky.render
Class IPostProcessor.PostProcessBean
- java.lang.Object
-
- gaiasky.render.IPostProcessor.PostProcessBean
-
- Enclosing interface:
- IPostProcessor
public static class IPostProcessor.PostProcessBean extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Map<java.lang.Class<? extends PostProcessorEffect>,java.util.Map<java.lang.String,PostProcessorEffect>>
effects
protected static Logger.Log
logger
PostProcessor
pp
-
Constructor Summary
Constructors Constructor Description PostProcessBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
capture()
com.badlogic.gdx.graphics.glutils.FrameBuffer
captureEnd()
boolean
captureNoClear()
void
dispose()
void
dispose(boolean cleanAllBuffers)
PostProcessorEffect
get(java.lang.Class<? extends PostProcessorEffect> clazz)
Gets the effect of the given class with the default keyPostProcessorEffect
get(java.lang.String key, java.lang.Class<? extends PostProcessorEffect> clazz)
Gets the first effect of the given typejava.util.Map<java.lang.String,PostProcessorEffect>
getAll(java.lang.Class<? extends PostProcessorEffect> clazz)
Gets all effects of the given typevoid
remove(java.lang.Class<? extends PostProcessorEffect> clazz)
Removes all effects from the given classvoid
remove(java.lang.String key, java.lang.Class<? extends PostProcessorEffect> clazz)
Removes the keyed effect from the given classvoid
render()
void
render(com.badlogic.gdx.graphics.glutils.FrameBuffer dest)
void
set(PostProcessorEffect effect)
Adds a new effect to the post processor with the default keyvoid
set(java.lang.String key, PostProcessorEffect effect)
Sets the given singleton effect to the post processor.
-
-
-
Field Detail
-
logger
protected static Logger.Log logger
-
pp
public PostProcessor pp
-
effects
public java.util.Map<java.lang.Class<? extends PostProcessorEffect>,java.util.Map<java.lang.String,PostProcessorEffect>> effects
-
-
Method Detail
-
set
public void set(PostProcessorEffect effect)
Adds a new effect to the post processor with the default key- Parameters:
effect
- The effect
-
get
public PostProcessorEffect get(java.lang.Class<? extends PostProcessorEffect> clazz)
Gets the effect of the given class with the default key- Parameters:
clazz
- The class
-
set
public void set(java.lang.String key, PostProcessorEffect effect)
Sets the given singleton effect to the post processor. This replaces any previous effect of the same type.- Parameters:
key
- The keyeffect
- The effect
-
get
public PostProcessorEffect get(java.lang.String key, java.lang.Class<? extends PostProcessorEffect> clazz)
Gets the first effect of the given type- Parameters:
clazz
- The class- Returns:
- The effect
-
getAll
public java.util.Map<java.lang.String,PostProcessorEffect> getAll(java.lang.Class<? extends PostProcessorEffect> clazz)
Gets all effects of the given type- Parameters:
clazz
- The class- Returns:
- The map of effects
-
remove
public void remove(java.lang.Class<? extends PostProcessorEffect> clazz)
Removes all effects from the given class- Parameters:
clazz
- The class
-
remove
public void remove(java.lang.String key, java.lang.Class<? extends PostProcessorEffect> clazz)
Removes the keyed effect from the given class- Parameters:
key
- The keyclazz
- The class
-
capture
public boolean capture()
-
captureNoClear
public boolean captureNoClear()
-
render
public void render()
-
captureEnd
public com.badlogic.gdx.graphics.glutils.FrameBuffer captureEnd()
-
render
public void render(com.badlogic.gdx.graphics.glutils.FrameBuffer dest)
-
dispose
public void dispose(boolean cleanAllBuffers)
-
dispose
public void dispose()
-
-