mirror of https://github.com/axmolengine/axmol.git
Make sure it compiles after Change in test
This commit is contained in:
parent
8c972d96a8
commit
d7b76a871e
|
@ -14,7 +14,7 @@ Layer* restartSpriteTestAction();
|
||||||
|
|
||||||
static std::function<Layer*()> createFunctions[] =
|
static std::function<Layer*()> createFunctions[] =
|
||||||
{
|
{
|
||||||
CL(NewRendererTest),
|
CL(NewSpriteTest),
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MAX_LAYER (sizeof(createFunctions) / sizeof(createFunctions[0]))
|
#define MAX_LAYER (sizeof(createFunctions) / sizeof(createFunctions[0]))
|
||||||
|
@ -111,16 +111,16 @@ void MultiSceneTest::backCallback(Object *sender)
|
||||||
s->release();
|
s->release();
|
||||||
}
|
}
|
||||||
|
|
||||||
NewSpriteTest::NewRendererTest()
|
NewSpriteTest::NewSpriteTest()
|
||||||
{
|
{
|
||||||
auto touchListener = EventListenerTouchAllAtOnce::create();
|
auto touchListener = EventListenerTouchAllAtOnce::create();
|
||||||
touchListener->onTouchesEnded = CC_CALLBACK_2(NewRendererTest::onTouchesEnded, this);
|
touchListener->onTouchesEnded = CC_CALLBACK_2(NewSpriteTest::onTouchesEnded, this);
|
||||||
|
|
||||||
createSpriteTest();
|
createSpriteTest();
|
||||||
createNewSpriteTest();
|
createNewSpriteTest();
|
||||||
}
|
}
|
||||||
|
|
||||||
NewSpriteTest::~NewRendererTest()
|
NewSpriteTest::~NewSpriteTest()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,8 +37,8 @@ public:
|
||||||
class NewSpriteTest : public MultiSceneTest
|
class NewSpriteTest : public MultiSceneTest
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NewRendererTest();
|
NewSpriteTest();
|
||||||
virtual ~NewRendererTest();
|
virtual ~NewSpriteTest();
|
||||||
|
|
||||||
virtual string title();
|
virtual string title();
|
||||||
virtual string subtitle();
|
virtual string subtitle();
|
||||||
|
|
Loading…
Reference in New Issue