I am creating Drawing app for ipad using cocos2d-iphone
its using CCRenderTexture for drawing.
I am able to take screenshot of my drawing and saving it to application document directory.
but now I want to load this as my background image to draw over it,and can change the image,so basically I want to merge my image with my render texture I tried this
but image is appearing below my rendertexture (with z=-1), I am not able to figure it out.
Is there any way to do this?
Thanks
so this is how i solved my problem
Step 1> created my RenderTexture
Step 2> Created CCSprite with background image
Step3> This is important part in this
this tutorial helped me http://www.raywenderlich.com/4421/how-to-mask-a-sprite-with-cocos2d-1-0
I hope this will be helpful for someone