2014-03-04 16:51:35 +08:00
|
|
|
#ifndef __TestCpp__CustomImageScene__
|
|
|
|
#define __TestCpp__CustomImageScene__
|
|
|
|
|
|
|
|
#include "cocos2d.h"
|
2014-03-05 21:18:51 +08:00
|
|
|
#include "extensions/cocos-ext.h"
|
2015-04-03 14:31:03 +08:00
|
|
|
#include "BaseTest.h"
|
2014-03-04 16:51:35 +08:00
|
|
|
|
2014-03-07 15:36:45 +08:00
|
|
|
class CustomImageLayer : public cocos2d::Layer
|
2014-03-04 16:51:35 +08:00
|
|
|
{
|
|
|
|
public:
|
2015-04-03 14:31:03 +08:00
|
|
|
CREATE_FUNC(CustomImageLayer);
|
|
|
|
|
|
|
|
virtual bool init() override;
|
2014-03-04 16:51:35 +08:00
|
|
|
};
|
|
|
|
|
2015-04-03 14:31:03 +08:00
|
|
|
class CustomImageScene : public TestCase
|
2014-03-04 16:51:35 +08:00
|
|
|
{
|
|
|
|
public:
|
2015-04-03 14:31:03 +08:00
|
|
|
CREATE_FUNC(CustomImageScene);
|
|
|
|
|
|
|
|
virtual bool init() override;
|
|
|
|
virtual std::string title() const override { return getTestCaseName(); }
|
2014-03-04 16:51:35 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* defined(__TestCpp__CustomUIScene__) */
|