How to Add Image/Sprite on texture??

How to Add Image/Sprite on texture??
0.0 0



I am drawing background Sprite

  1. CCRenderTexture…draw texture using it

2)The taking sprite from this

So i need to add some images or sprite(from images) on to the texture…

so is there any API by which we can add to texture and then getting sprite (texture + images)…

or i have to draw on texture using open gl commands???

Thanks in advance


The normal process flow is CCImage > CCTexture2D> CCSprite.
If CCTexture2D::initWithImage(CCImage*), initWithData(…) meet your requirement?