2011-11-17 10:10:13 +08:00
|
|
|
#ifndef _TEXTURECACHE_TEST_H_
|
|
|
|
#define _TEXTURECACHE_TEST_H_
|
|
|
|
|
2011-11-21 12:04:21 +08:00
|
|
|
|
2011-11-17 10:10:13 +08:00
|
|
|
#include "cocos2d.h"
|
|
|
|
#include "../testBasic.h"
|
2011-11-21 12:04:21 +08:00
|
|
|
#include "platform/platform.h"
|
2011-11-17 10:10:13 +08:00
|
|
|
|
2013-06-20 14:17:10 +08:00
|
|
|
class TextureCacheTest : public Layer
|
2011-11-17 10:10:13 +08:00
|
|
|
{
|
|
|
|
public:
|
2012-04-19 14:35:52 +08:00
|
|
|
TextureCacheTest();
|
|
|
|
void addSprite();
|
2013-06-20 14:17:10 +08:00
|
|
|
void loadingCallBack(cocos2d::Object *obj);
|
2011-11-17 10:10:13 +08:00
|
|
|
|
|
|
|
private:
|
2013-06-20 14:17:10 +08:00
|
|
|
cocos2d::LabelTTF *_labelLoading;
|
|
|
|
cocos2d::LabelTTF *_labelPercent;
|
2013-06-15 14:03:30 +08:00
|
|
|
int _numberOfSprites;
|
|
|
|
int _numberOfLoadedSprites;
|
2011-11-17 10:10:13 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class TextureCacheTestScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void runThisTest();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _TEXTURECACHE_TEST_H_
|