mirror of https://github.com/axmolengine/axmol.git
fix transition scene progress timer
This commit is contained in:
parent
756f8f7a11
commit
9385fb3481
|
@ -32,6 +32,7 @@ THE SOFTWARE.
|
||||||
#include "CCLayer.h"
|
#include "CCLayer.h"
|
||||||
#include "CCActionInstant.h"
|
#include "CCActionInstant.h"
|
||||||
#include "CCActionProgressTimer.h"
|
#include "CCActionProgressTimer.h"
|
||||||
|
#include "CCNewRenderTexture.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
|
@ -71,7 +72,7 @@ void TransitionProgress::onEnter()
|
||||||
Size size = Director::getInstance()->getWinSize();
|
Size size = Director::getInstance()->getWinSize();
|
||||||
|
|
||||||
// create the second render texture for outScene
|
// create the second render texture for outScene
|
||||||
RenderTexture *texture = RenderTexture::create((int)size.width, (int)size.height);
|
RenderTexture *texture = NewRenderTexture::create((int)size.width, (int)size.height);
|
||||||
texture->getSprite()->setAnchorPoint(Point(0.5f,0.5f));
|
texture->getSprite()->setAnchorPoint(Point(0.5f,0.5f));
|
||||||
texture->setPosition(Point(size.width/2, size.height/2));
|
texture->setPosition(Point(size.width/2, size.height/2));
|
||||||
texture->setAnchorPoint(Point(0.5f,0.5f));
|
texture->setAnchorPoint(Point(0.5f,0.5f));
|
||||||
|
|
Loading…
Reference in New Issue