|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITextureEffect
An interface for texture effects. Texture effects are two-dimensional effects applied to a texture. The affected texture has to be converted and uploaded to the GPU every time the effect will be applied.
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. |
Method Detail |
---|
void init(Texture tex)
tex
- the Texture to which the effect should be appliedTexture.setEffect(com.threed.jpct.ITextureEffect)
void apply(int[] dest, int[] source)
dest
- the destination bitmapsource
- the source bitmap (the unmodified texture)boolean containsAlpha()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |