Hello Friends,
I was trying to capture my game screen using RenderTexture and trying to save as PNG image. It was working nice on version Cocos2D-X 2.2+. But I was facing issue with version 3.6. Finally I got it working. Hope this may help to someone and may save someone’s precious time.
Here is the code snippet to capture screen and save as image. (I have usedCocos2D-X version 3.6 and tested it on Simulator. Its working.) Continue reading