2012-04-19 14:35:52 +08:00
|
|
|
#ifndef __PERFORMANCE_TEXTURE_TEST_H__
|
|
|
|
#define __PERFORMANCE_TEXTURE_TEST_H__
|
|
|
|
|
|
|
|
#include "PerformanceTest.h"
|
|
|
|
|
|
|
|
class TextureMenuLayer : public PerformBasicLayer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TextureMenuLayer(bool bControlMenuVisible, int nMaxCases = 0, int nCurCase = 0)
|
|
|
|
:PerformBasicLayer(bControlMenuVisible, nMaxCases, nCurCase)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void showCurrentTest();
|
|
|
|
|
2014-02-27 21:10:03 +08:00
|
|
|
virtual void onEnter() override;
|
2013-12-19 05:52:10 +08:00
|
|
|
virtual std::string title() const;
|
|
|
|
virtual std::string subtitle() const;
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual void performTests() = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
class TextureTest : public TextureMenuLayer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TextureTest(bool bControlMenuVisible, int nMaxCases = 0, int nCurCase = 0)
|
|
|
|
:TextureMenuLayer(bControlMenuVisible, nMaxCases, nCurCase)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void performTests();
|
2013-12-19 05:52:10 +08:00
|
|
|
virtual std::string title() const override;
|
|
|
|
virtual std::string subtitle() const override;
|
2012-04-19 14:35:52 +08:00
|
|
|
void performTestsPNG(const char* filename);
|
|
|
|
|
2015-04-09 08:37:30 +08:00
|
|
|
static cocos2d::Scene* scene();
|
2012-04-19 14:35:52 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
void runTextureTest();
|
|
|
|
|
|
|
|
#endif
|