www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: icarusfactor on April 04, 2011, 06:03:20 am

Title: Direct Texture color array manipulation.
Post by: icarusfactor 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.
Title: Re: Direct Texture color array manipulation.
Post by: Thomas. on April 04, 2011, 01:11:31 pm
Egon, could you add texture.getArray() method?
Title: Re: Direct Texture color array manipulation.
Post by: EgonOlsen 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.
Title: Re: Direct Texture color array manipulation.
Post by: icarusfactor 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.