mirror of https://github.com/axmolengine/axmol.git
26 lines
541 B
C++
26 lines
541 B
C++
#ifndef _TEST_BASIC_H_
|
|
#define _TEST_BASIC_H_
|
|
|
|
#include "cocos2d.h"
|
|
#include "3d/cocos3d.h"
|
|
#include "audio/include/SimpleAudioEngine.h"
|
|
#include "VisibleRect.h"
|
|
|
|
USING_NS_CC;
|
|
|
|
class TestScene : public Scene
|
|
{
|
|
public:
|
|
TestScene(bool bPortrait = false, bool physics = false);
|
|
virtual void onEnter() override;
|
|
|
|
virtual void runThisTest() = 0;
|
|
};
|
|
|
|
// C++ 11
|
|
|
|
#define CL(__className__) [](){ return __className__::create();}
|
|
#define CLN(__className__) [](){ auto obj = new __className__(); obj->autorelease(); return obj; }
|
|
|
|
#endif
|