W1nt3r
#1
Hello!
Is there any simple way to add two textures? I will try to explain
|1| - first texture from file #1 (size is 50x50);
|2| - second texture from file #2 (size is also 50x50);
|1|
|2| - third result texture (size is 50x100, texture2 was added under texture1).
Thanks in advance!
P.S. I’m using Marmalade port.
zhangxm
#2
I think you should merge image1 and image2 into image3, then generate the third texture.
W1nt3r
#3
Hi Mingoo! Thanks for reply!
What do you mean by “merge”? Is there any merge() function or I should play with m_pData member?
zhangxm
#4
No, you should do it by yourself.
You can get image data by CCImage, then you can merge the two images into one image.