axmol/tests/cpp-tests/Classes/TextureCacheTest/TextureCacheTest.h

29 lines
526 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();
2014-01-02 17:23:00 +08:00
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_