Getting screenshot
Getting screenshot of currently showing scene: Size s= Director::getInstance()->getWinSize(); auto rt= RenderTexture::create(s.width, s.height, Texture2D::PixelFormat::RGBA8888); rt->begin(); Director::getInstance()->getRunningScene()->visit(); rt->end(); Creating a sprite
Continue reading
Recent Comments