mirror of https://github.com/axmolengine/axmol.git
30 lines
556 B
C++
30 lines
556 B
C++
#ifndef _TEXTURECACHE_TEST_H_
|
|
#define _TEXTURECACHE_TEST_H_
|
|
|
|
|
|
#include "cocos2d.h"
|
|
#include "../testBasic.h"
|
|
#include "platform/platform.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_
|