Kaynağa Gözat

[cpp] Closes #1713, dark color was not set in Slot::setToSetupPose().

badlogic 5 yıl önce
ebeveyn
işleme
c47ea763fe

+ 2 - 2
spine-cpp/spine-cpp/include/spine/Atlas.h

@@ -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);
 };
 }
 

+ 4 - 0
spine-cpp/spine-cpp/src/spine/Atlas.cpp

@@ -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",