Skip to content

Commit

Permalink
Added TextureAtlas.TextureAtlasData.Page#name.
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanSweet committed Apr 21, 2024
1 parent c8918bb commit 406f7d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gdx/src/com/badlogic/gdx/graphics/g2d/TextureAtlas.java
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ public void parse (Region region) {
line = reader.readLine();
} else if (page == null) {
page = new Page();
page.name = line;
page.textureFile = imagesDir.child(line);
while (true) {
if (readEntry(entry, line = reader.readLine()) == 0) break;
Expand Down Expand Up @@ -479,6 +480,7 @@ static private interface Field<T> {
}

static public class Page {
public String name;
/** May be null if this page isn't associated with a file. In that case, {@link #texture} must be set. */
public @Null FileHandle textureFile;
/** May be null if the texture is not yet loaded. */
Expand Down

0 comments on commit 406f7d8

Please sign in to comment.