axmol/samples/Cpp/TestCpp/Classes/DrawPrimitivesTest/DrawPrimitivesTest.h

51 lines
997 B
C
Raw Normal View History

2010-08-26 10:53:49 +08:00
#ifndef _DRAW_PRIMITIVES_TEST_H_
#define _DRAW_PRIMITIVES_TEST_H_
2012-11-21 11:43:08 +08:00
#include "cocos2d.h"
#include "../testBasic.h"
#include "../BaseTest.h"
2012-11-21 11:43:08 +08:00
#include <string>
class BaseLayer : public BaseTest
2012-11-21 11:43:08 +08:00
{
public:
BaseLayer();
void restartCallback(Object* sender);
void nextCallback(Object* sender);
void backCallback(Object* sender);
virtual std::string title() const override;
virtual std::string subtitle() const override;
2012-11-21 11:43:08 +08:00
virtual void onEnter();
};
class DrawPrimitivesTest : public BaseLayer
2010-08-26 10:53:49 +08:00
{
public:
DrawPrimitivesTest();
2012-11-21 11:43:08 +08:00
virtual std::string title() const override;
virtual std::string subtitle() const override;
virtual void draw();
2013-12-25 11:44:05 +08:00
protected:
void onDraw();
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() const override;
virtual std::string subtitle() const override;
2012-11-21 11:43:08 +08:00
};
2010-08-26 10:53:49 +08:00
class DrawPrimitivesTestScene : public TestScene
{
public:
virtual void runThisTest();
};
#endif