hi friends,
I want to draw the content of my first RenderTexture into a second one.
Is this the right way or is there a better way to achieve this?
mRTex->beginWithClear(0, 255, 0, 255);
sprite2->visit();
mRTex->end();
mRTexScreen->beginWithClear(255, 0, 0, 255);
//mRTex->getSprite()->visit();
Sprite *sprite = Sprite::createWithTexture(mRTex->getSprite()->getTexture());
sprite->setFlippedY(true);
auto lWinSize = Director::getInstance()->getWinSizeInPixels();
sprite->setPosition(lWinSize.width / 2, lWinSize.height / 2);
sprite->visit();
mRTexScreen->end();