|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threed.jpct.WaterTextureEffect
An effect that renders ripples into a texture.
| Constructor Summary | |
WaterTextureEffect(int intensity)
Creates a new texture effect. |
|
| Method Summary | |
void |
apply(int[] dest,
int[] source)
Applies the effect. |
boolean |
containsAlpha()
If this returns true, jPCT assumes that the alpha channel in the returned pixels is populated and treats it accordingly. |
void |
init(Texture tex)
Initializes the effect. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WaterTextureEffect(int intensity)
intensity - the "power" of the ripples the effect produces. The higher
this value is, the longer the ripples will last.| Method Detail |
public void init(Texture tex)
ITextureEffect
init in interface ITextureEffecttex - the Texture to which the effect should be appliedTexture.setEffect(com.threed.jpct.ITextureEffect)
public void apply(int[] dest,
int[] source)
ITextureEffect
apply in interface ITextureEffectdest - the destination bitmapsource - the source bitmap (the unmodified texture)public boolean containsAlpha()
ITextureEffect
containsAlpha in interface ITextureEffect
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||