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

24 lines
463 B
C
Raw Normal View History

#ifndef _TEST_BASIC_H_
#define _TEST_BASIC_H_
#include "cocos2d.h"
#include "VisibleRect.h"
USING_NS_CC;
2013-09-17 23:03:33 +08:00
class TestScene : public Scene
{
public:
2013-11-18 03:43:32 +08:00
TestScene(bool bPortrait = false, bool physics = false);
virtual void onEnter();
virtual void runThisTest() = 0;
};
// C++ 11
2013-11-14 07:55:36 +08:00
#define CL(__className__) [](){ return __className__::create();}
2013-12-30 15:32:04 +08:00
#define CLN(__className__) [](){ auto obj = new __className__(); obj->autorelease(); return obj; }
#endif