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

40 lines
818 B
C++

#ifndef __PERFORMANCE_TEST_H__
#define __PERFORMANCE_TEST_H__
#include "../testBasic.h"
class PerformanceMainLayer : public CCLayer
{
public:
virtual void onEnter();
void menuCallback(CCObject* pSender);
};
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