mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
Closes #1703, expose atlas regions via Atlas::getRegions()
Also removed Atlas::abortAtlas().
This commit is contained in:
parent
10ecbcf8f3
commit
1219d09959
@ -115,6 +115,8 @@ public:
|
||||
|
||||
Vector<AtlasPage*> &getPages();
|
||||
|
||||
Vector<AtlasRegion *> &getRegions();
|
||||
|
||||
private:
|
||||
Vector<AtlasPage *> _pages;
|
||||
Vector<AtlasRegion *> _regions;
|
||||
@ -149,8 +151,6 @@ private:
|
||||
static int equals(Str *str, const char *other);
|
||||
|
||||
static int toInt(Str *str);
|
||||
|
||||
static Atlas *abortAtlas(Atlas *atlas);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@ -98,6 +98,10 @@ Vector<AtlasPage*> &Atlas::getPages() {
|
||||
return _pages;
|
||||
}
|
||||
|
||||
Vector<AtlasRegion*> &Atlas::getRegions() {
|
||||
return _regions;
|
||||
}
|
||||
|
||||
void Atlas::load(const char *begin, int length, const char *dir, bool createTexture) {
|
||||
static const char *formatNames[] = {"", "Alpha", "Intensity", "LuminanceAlpha", "RGB565", "RGBA4444", "RGB888", "RGBA8888"};
|
||||
static const char *textureFilterNames[] = {"", "Nearest", "Linear", "MipMap", "MipMapNearestNearest", "MipMapLinearNearest",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user