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

39 lines
776 B
C
Raw Normal View History

#ifndef __PERFORMANCE_TEST_H__
#define __PERFORMANCE_TEST_H__
#include "../testBasic.h"
class PerformanceMainLayer : public CCLayer
{
public:
virtual void onEnter();
};
class PerformBasicLayer : public CCLayer
{
public:
PerformBasicLayer(bool bControlMenuVisible, int nMaxCases = 0, int nCurCase = 0);
virtual void onEnter();
virtual void restartCallback(CCObject* pSender);
virtual void nextCallback(CCObject* pSender);
virtual void backCallback(CCObject* pSender);
virtual void showCurrentTest() = 0;
virtual void toMainLayer(CCObject* pSender);
protected:
bool m_bControlMenuVisible;
int m_nMaxCases;
int m_nCurCase;
};
class PerformanceTestScene : public TestScene
{
public:
virtual void runThisTest();
};
#endif