2010-08-26 10:53:49 +08:00
|
|
|
#ifndef _DRAW_PRIMITIVES_TEST_H_
|
|
|
|
#define _DRAW_PRIMITIVES_TEST_H_
|
2012-04-19 14:35:52 +08:00
|
|
|
|
2012-11-21 11:43:08 +08:00
|
|
|
#include "cocos2d.h"
|
2012-04-19 14:35:52 +08:00
|
|
|
#include "../testBasic.h"
|
|
|
|
|
2012-11-21 11:43:08 +08:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class BaseLayer : public CCLayer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
BaseLayer();
|
|
|
|
|
|
|
|
void restartCallback(CCObject* pSender);
|
|
|
|
void nextCallback(CCObject* pSender);
|
|
|
|
void backCallback(CCObject* pSender);
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
|
|
|
virtual void onEnter();
|
|
|
|
};
|
|
|
|
|
|
|
|
class DrawPrimitivesTest : public BaseLayer
|
2010-08-26 10:53:49 +08:00
|
|
|
{
|
|
|
|
public:
|
2012-04-19 14:35:52 +08:00
|
|
|
DrawPrimitivesTest();
|
2012-11-21 11:43:08 +08:00
|
|
|
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual void draw();
|
2010-08-26 10:53:49 +08:00
|
|
|
};
|
|
|
|
|
2012-11-21 11:43:08 +08:00
|
|
|
class DrawNodeTest : public BaseLayer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DrawNodeTest();
|
|
|
|
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
|
|
|
};
|
|
|
|
|
2010-08-26 10:53:49 +08:00
|
|
|
class DrawPrimitivesTestScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void runThisTest();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|