mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
43 lines
731 B
C++
43 lines
731 B
C++
#ifndef SPINE_ATLAS_H_
|
|
#define SPINE_ATLAS_H_
|
|
|
|
#include "cocos2d.h"
|
|
#include <spine/BaseAtlas.h>
|
|
|
|
USING_NS_CC;
|
|
|
|
namespace spine {
|
|
|
|
class AtlasPage: public BaseAtlasPage {
|
|
public:
|
|
~AtlasPage ();
|
|
|
|
CCTexture2D *texture;
|
|
};
|
|
|
|
//
|
|
|
|
class AtlasRegion: public BaseAtlasRegion {
|
|
public:
|
|
AtlasPage *page;
|
|
};
|
|
|
|
//
|
|
|
|
class Atlas: public BaseAtlas {
|
|
public:
|
|
Atlas (std::ifstream &file);
|
|
Atlas (std::istream &input);
|
|
Atlas (const std::string &text);
|
|
Atlas (const char *begin, const char *end);
|
|
|
|
AtlasRegion* findRegion (const std::string &name);
|
|
|
|
private:
|
|
virtual BaseAtlasPage* newAtlasPage (const std::string &name);
|
|
virtual BaseAtlasRegion* newAtlasRegion (BaseAtlasPage* page);
|
|
};
|
|
|
|
} /* namespace spine */
|
|
#endif /* SPINE_ATLAS_H_ */
|