|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for texture effects. Texture effects are two-dimensional effects applied to a texture. These effects are supported by the OpenGL renderer and the software renderer, but be careful when using them together with the OpenGL renderer. The affected texture has to be converted and uploaded to the graphics card every time the effect will be applied. This will most likely ruin performance and lets the VM eat a lot of memory too.
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 |
public void init(Texture tex)
tex
- the Texture to which the effect should be appliedTexture.setEffect(com.threed.jpct.ITextureEffect)
public void apply(int[] dest, int[] source)
dest
- the destination bitmapsource
- the source bitmap (the unmodified texture)public boolean containsAlpha()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |