Color4F bgcolor=Color4F(255, 110, 0,0.5);
RenderTexture *m_pRT = RenderTexture::create(400,400);
m_pRT->beginWithClear(bgcolor.r,bgcolor.g,bgcolor.b,bgcolor.a);
m_pRT->end();
Sprite *colorSprite=Sprite::createWithTexture(m_pRT->getSprite()->getTexture());
colorSprite->setPosition(Vec2(this->getContentSize().width/2, this->getContentSize().height/2));
this->addChild(colorSprite);
很简单的代码,不知道为什么没有任何效果,是用的不对还是什么问题,麻烦大神指点,使用的3.0