2013-11-05 01:14:22 +08:00
|
|
|
//
|
|
|
|
// Created by NiTe Luo on 11/1/13.
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __NewRendererTest_H_
|
|
|
|
#define __NewRendererTest_H_
|
|
|
|
|
|
|
|
#include "cocos2d.h"
|
|
|
|
#include "../testBasic.h"
|
|
|
|
#include "../BaseTest.h"
|
|
|
|
|
2013-11-13 03:19:18 +08:00
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
class NewRendererTestScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void runThisTest();
|
|
|
|
};
|
|
|
|
|
|
|
|
class MultiSceneTest : public BaseTest
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
MultiSceneTest();
|
|
|
|
virtual ~MultiSceneTest();
|
|
|
|
|
|
|
|
virtual string title();
|
|
|
|
virtual string subtitle();
|
|
|
|
virtual void onEnter();
|
|
|
|
|
|
|
|
void restartCallback(Object* sender);
|
|
|
|
void nextCallback(Object* sender);
|
|
|
|
void backCallback(Object* sender);
|
|
|
|
};
|
|
|
|
|
|
|
|
class NewSpriteTest : public MultiSceneTest
|
2013-11-05 01:14:22 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
NewRendererTest();
|
2013-11-13 03:19:18 +08:00
|
|
|
virtual ~NewRendererTest();
|
|
|
|
|
|
|
|
virtual string title();
|
|
|
|
virtual string subtitle();
|
2013-11-05 01:14:22 +08:00
|
|
|
|
|
|
|
void createSpriteTest();
|
|
|
|
void createNewSpriteTest();
|
|
|
|
void onTouchesEnded(const std::vector<Touch*>& touches, Event* event);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif //__NewRendererTest_H_
|