Author Topic: apply textureEffect  (Read 1248 times)

Offline guillaume

  • int
  • **
  • Posts: 67
    • View Profile
apply textureEffect
« on: January 04, 2012, 09:49:51 am »
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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11985
    • View Profile
    • http://www.jpct.net
Re: apply textureEffect
« Reply #1 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... ???

Offline guillaume

  • int
  • **
  • Posts: 67
    • View Profile
Re: apply textureEffect
« Reply #2 on: January 05, 2012, 01:08:50 am »
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.