public class ColorOverlayFilter
extends com.jme3.post.Filter
| Constructor and Description |
|---|
ColorOverlayFilter()
creates a colorOverlayFilter with a white color (transparent)
|
ColorOverlayFilter(com.jme3.math.ColorRGBA color)
creates a colorOverlayFilter with the given color
|
| Modifier and Type | Method and Description |
|---|---|
com.jme3.math.ColorRGBA |
getColor()
returns the color
|
protected com.jme3.material.Material |
getMaterial() |
protected void |
initFilter(com.jme3.asset.AssetManager manager,
com.jme3.renderer.RenderManager renderManager,
com.jme3.renderer.ViewPort vp,
int w,
int h) |
void |
read(com.jme3.export.JmeImporter im) |
void |
setColor(com.jme3.math.ColorRGBA color)
sets the color
|
void |
write(com.jme3.export.JmeExporter ex) |
cleanup, cleanUpFilter, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, isRequiresBilinear, isRequiresDepthTexture, isRequiresSceneTexture, postFilter, postFrame, postQueue, preFrame, setDepthTexture, setEnabled, setName, setProcessor, setRenderedTexture, setRenderFrameBufferpublic ColorOverlayFilter()
public ColorOverlayFilter(com.jme3.math.ColorRGBA color)
color - the desired color (default=(1,1,1,1), alias created)protected com.jme3.material.Material getMaterial()
getMaterial in class com.jme3.post.Filterpublic com.jme3.math.ColorRGBA getColor()
public void setColor(com.jme3.math.ColorRGBA color)
color - the desired color (default=(1,1,1,1), alias created)protected void initFilter(com.jme3.asset.AssetManager manager,
com.jme3.renderer.RenderManager renderManager,
com.jme3.renderer.ViewPort vp,
int w,
int h)
initFilter in class com.jme3.post.Filterpublic void write(com.jme3.export.JmeExporter ex)
throws java.io.IOException
write in interface com.jme3.export.Savablewrite in class com.jme3.post.Filterjava.io.IOExceptionpublic void read(com.jme3.export.JmeImporter im)
throws java.io.IOException
read in interface com.jme3.export.Savableread in class com.jme3.post.Filterjava.io.IOException