CCSize size = CCDirector::sharedDirector()->getWinSize();
CCRenderTexture *screen = CCRenderTexture::create(size.width, size.height);
CCScene *scene = CCDirector::sharedDirector()->getRunningScene();
screen->begin();
scene->visit();
screen->end();
screen->saveToFile("MyCurScene.png", kCCImageFormatPNG);
CCRenderTexture *screen = CCRenderTexture::create(size.width, size.height);
CCScene *scene = CCDirector::sharedDirector()->getRunningScene();
screen->begin();
scene->visit();
screen->end();
screen->saveToFile("MyCurScene.png", kCCImageFormatPNG);