OSDN Git Service

Make Page and Rect public to allow reuse and extension
authorVincent Bousquet <vbousquet@free.fr>
Wed, 5 Jun 2013 19:09:36 +0000 (21:09 +0200)
committerVincent Bousquet <vbousquet@free.fr>
Wed, 5 Jun 2013 19:09:36 +0000 (21:09 +0200)
extensions/gdx-tools/src/com/badlogic/gdx/tools/imagepacker/TexturePacker2.java

index 581bbc6..46bd703 100644 (file)
@@ -324,7 +324,7 @@ public class TexturePacker2 {
        }
 
        /** @author Nathan Sweet */
-       static class Page {
+       public static class Page {
                public String imageName;
                public Array<Rect> outputRects, remainingRects;
                public float occupancy;
@@ -332,7 +332,7 @@ public class TexturePacker2 {
        }
 
        /** @author Nathan Sweet */
-       static class Rect {
+       public static class Rect {
                public String name;
                public BufferedImage image;
                public int offsetX, offsetY, originalWidth, originalHeight;