apply textureEffect

Started by guillaume, January 04, 2012, 09:49:51 AM

Previous topic - Next topic

guillaume

what's the exact format of  param  src  in ITextueEffect. apply(int[] dest,  int src[]) ?
I have a  128x128 texture and in apply() , I found src.length is 16513., but 128x128=16384
they are not the same.

EgonOlsen

In jPCT-AE? No, that shouldn't be the case. In desktop jPCT...yes. The format in desktop jPCT is 128*128 + 128+1, but you can completely ignore the last 129 entries. There are used by the software renderer only. But as said, in jPCT-AE, this isn't the case... ???

guillaume

Quote from: EgonOlsen on January 04, 2012, 08:57:42 PM
In jPCT-AE? No, that shouldn't be the case. In desktop jPCT...yes. The format in desktop jPCT is 128*128 + 128+1, but you can completely ignore the last 129 entries. There are used by the software renderer only. But as said, in jPCT-AE, this isn't the case... ???

oh, yes. it's in desktop jPCT.   I develop my app in desktop,
then use a android wrapper to depoly them to android.

thanks.