axmol/samples/TestCpp/Classes/TextureCacheTest/TextureCacheTest.h

30 lines
572 B
C++

#ifndef _TEXTURECACHE_TEST_H_
#define _TEXTURECACHE_TEST_H_
#include "cocos2d.h"
#include "../testBasic.h"
#include "platform/platform.h"
class TextureCacheTest : public CCLayer
{
public:
TextureCacheTest();
void addSprite();
void loadingCallBack(cocos2d::CCObject *obj);
private:
cocos2d::CCLabelTTF *m_pLabelLoading;
cocos2d::CCLabelTTF *m_pLabelPercent;
int m_nNumberOfSprites;
int m_nNumberOfLoadedSprites;
};
class TextureCacheTestScene : public TestScene
{
public:
virtual void runThisTest();
};
#endif // _TEXTURECACHE_TEST_H_