NathanSweet a1ad55f8a1 Documented memory ownership.
Clean up and minor improvements.
2013-03-15 01:41:24 +01:00

41 lines
733 B
C++

#ifndef SPINE_ATLAS_H_
#define SPINE_ATLAS_H_
#include <spine/BaseAtlas.h>
#include <SFML/Graphics/Texture.hpp>
namespace spine {
class AtlasPage: public BaseAtlasPage {
public:
~AtlasPage ();
sf::Texture *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_ */