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
|
|
|
|
|
|
|
class TextureCacheTest : public CCLayer
|
|
|
|
{
|
|
|
|
public:
|
2012-04-19 14:35:52 +08:00
|
|
|
TextureCacheTest();
|
|
|
|
void addSprite();
|
|
|
|
void loadingCallBack(cocos2d::CCObject *obj);
|
2011-11-17 10:10:13 +08:00
|
|
|
|
|
|
|
private:
|
2012-04-19 14:35:52 +08:00
|
|
|
cocos2d::CCLabelTTF *m_pLabelLoading;
|
|
|
|
cocos2d::CCLabelTTF *m_pLabelPercent;
|
|
|
|
int m_nNumberOfSprites;
|
|
|
|
int m_nNumberOfLoadedSprites;
|
2011-11-17 10:10:13 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class TextureCacheTestScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void runThisTest();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _TEXTURECACHE_TEST_H_
|