Is it possible in cocos2dx to render something to texture? How I can switch rending from screen to texture?
CCRenderTexture renderTexture = CCRenderTexture::create;
CCSpritesprite = CCSprite::createWithTexture(rednerTexture->getSprite()->getTexture());
Thaks for answer, but what is type of sprite1 … spriteN ? I look throw CCSprite and don’t find CCSprite::visit() method.
You’ll find it in CCSprite’s parent - CCNode. Try looking through RenderTextureTest in TestCpp.
Greate, I think i begin understand how it wotks, thanks again.