We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在ripple demo 中,在ripple node 下添加一个背景
auto bg = Sprite::create("demoRes/tableCloth.png"); bg->setPosition(Vec2(visibleSize.width/2 , visibleSize.height/2)); this->addChild(bg);
然后执行 render texture 截屏
auto render = RenderTexture::create(visibleSize.width, visibleSize.height); render->begin(); Director::getInstance()->getRunningScene()->visit(); render->end(); Director::getInstance()->getRenderer()->render(); this->addChild(render,10,"render");
正常显示
使用RenderTexture 截的图
可以看出 图片的左侧和下侧 都没有显示全, 而在我自己的竖屏项目中,iphone基本可以正常显示,没有太明显的裁减的情况,但是在ipad上左侧被裁减的很严重
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在ripple demo 中,在ripple node 下添加一个背景
然后执行 render texture 截屏
正常显示
使用RenderTexture 截的图
可以看出 图片的左侧和下侧 都没有显示全,
而在我自己的竖屏项目中,iphone基本可以正常显示,没有太明显的裁减的情况,但是在ipad上左侧被裁减的很严重
The text was updated successfully, but these errors were encountered: