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

29 lines
525 B
C
Raw Normal View History

#ifndef _TEXTURECACHE_TEST_H_
#define _TEXTURECACHE_TEST_H_
2011-11-21 12:04:21 +08:00
#include "cocos2d.h"
#include "../testBasic.h"
class TextureCacheTest : public Layer
{
public:
TextureCacheTest();
void addSprite();
void loadingCallBack(cocos2d::Object *obj);
private:
cocos2d::LabelTTF *_labelLoading;
cocos2d::LabelTTF *_labelPercent;
int _numberOfSprites;
int _numberOfLoadedSprites;
};
class TextureCacheTestScene : public TestScene
{
public:
virtual void runThisTest();
};
#endif // _TEXTURECACHE_TEST_H_