public class ComposeFilter extends Filter
Filter.PassdefaultPass, enabled, material, postRenderPasses, processor| Constructor and Description |
|---|
ComposeFilter()
creates a ComposeFilter
|
ComposeFilter(Texture2D compositeTexture)
creates a ComposeFilter with the given texture
|
| Modifier and Type | Method and Description |
|---|---|
Texture2D |
getCompositeTexture() |
protected Material |
getMaterial()
Must return the material used for this filter.
|
protected void |
initFilter(AssetManager manager,
RenderManager renderManager,
ViewPort vp,
int w,
int h)
Initialization of sub classes filters
This method is called once when the filter is added to the FilterPostProcessor
It should contain Material initializations and extra passes initialization
|
void |
read(JmeImporter im)
Override this method if you want to load extra properties when the filter
is loaded else only basic properties of the filter will be loaded
This method should always begin by super.read(im);
|
void |
setCompositeTexture(Texture2D compositeTexture)
sets the compositeTexture
|
void |
write(JmeExporter ex)
Override this method if you want to save extra properties when the filter is saved else only basic properties of the filter will be saved
This method should always begin by super.write(ex);
|
cleanup, cleanUpFilter, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, isRequiresBilinear, isRequiresDepthTexture, isRequiresSceneTexture, postFilter, postFrame, postQueue, preFrame, setDepthTexture, setEnabled, setName, setProcessor, setRenderedTexture, setRenderFrameBufferpublic ComposeFilter()
public ComposeFilter(Texture2D compositeTexture)
compositeTexture - protected Material getMaterial()
FiltergetMaterial in class Filterpublic Texture2D getCompositeTexture()
public void setCompositeTexture(Texture2D compositeTexture)
compositeTexture - protected void initFilter(AssetManager manager, RenderManager renderManager, ViewPort vp, int w, int h)
FilterinitFilter in class Filtermanager - the assetManagerrenderManager - the renderManagervp - the viewPort where this filter is renderedw - the width of the filterh - the height of the filterpublic void write(JmeExporter ex) throws java.io.IOException
Filterpublic void read(JmeImporter im) throws java.io.IOException
Filter