mirror of https://github.com/axmolengine/axmol.git
29 lines
526 B
C++
29 lines
526 B
C++
#ifndef _TEXTURECACHE_TEST_H_
|
|
#define _TEXTURECACHE_TEST_H_
|
|
|
|
|
|
#include "cocos2d.h"
|
|
#include "../testBasic.h"
|
|
|
|
class TextureCacheTest : public Layer
|
|
{
|
|
public:
|
|
TextureCacheTest();
|
|
void addSprite();
|
|
void loadingCallBack(cocos2d::Texture2D *texture);
|
|
|
|
private:
|
|
cocos2d::Label *_labelLoading;
|
|
cocos2d::Label *_labelPercent;
|
|
int _numberOfSprites;
|
|
int _numberOfLoadedSprites;
|
|
};
|
|
|
|
class TextureCacheTestScene : public TestScene
|
|
{
|
|
public:
|
|
virtual void runThisTest();
|
|
};
|
|
|
|
#endif // _TEXTURECACHE_TEST_H_
|