Author Topic: Direct Texture color array manipulation.  (Read 3107 times)

Offline icarusfactor

  • int
  • **
  • Posts: 58
    • View Profile
Direct Texture color array manipulation.
« on: April 04, 2011, 06:03:20 am »
The process i have been using has worked fine until now for text manipulation, I think I can get more umph out of what I got, but is a long process, I was wondering if ITextureEffect is what I need instead, at least for overlay text. With the "apply" option can I directly write to a Texture color array pixels? If so can you post a simple example of how to use this method.

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Direct Texture color array manipulation.
« Reply #1 on: April 04, 2011, 01:11:31 pm »
Egon, could you add texture.getArray() method?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Direct Texture color array manipulation.
« Reply #2 on: April 04, 2011, 02:42:47 pm »
No, that's what the ITextureEffect is meant for. If you can't find an example in the forum, have a look at the Robombs sources. It uses some ITextureEffects for preprocessing textures.

Offline icarusfactor

  • int
  • **
  • Posts: 58
    • View Profile
Re: Direct Texture color array manipulation.
« Reply #3 on: April 05, 2011, 04:32:50 am »
Ok, downloaded it from here. http://jpct.de/robombs.game/ will look through it and see what I can come up with , thanks.