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

30 lines
581 B
C
Raw Normal View History

#ifndef _TEST_BASIC_H_
#define _TEST_BASIC_H_
#include "cocos2d.h"
#include "VisibleRect.h"
USING_NS_CC;
using namespace std;
class TestScene : public CCScene
{
public:
TestScene(bool bPortrait = false);
virtual void onEnter();
virtual void runThisTest() = 0;
// The CallBack for back to the main menu scene
virtual void MainMenuCallback(CCObject* pSender);
};
2012-11-21 15:22:54 +08:00
typedef CCLayer* (*NEWTESTFUNC)();
#define TESTLAYER_CREATE_FUNC(className) \
static CCLayer* create##className() \
{ return new className(); }
#define CF(className) create##className
#endif