public class Stitcher
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Stitcher.Holder |
static class |
Stitcher.Slot |
Modifier and Type | Field and Description |
---|---|
private int |
currentHeight |
private int |
currentWidth |
private int |
maxHeight |
private int |
maxTileDimension |
private int |
maxWidth |
private int |
mipmapLevelStitcher |
private java.util.Set<Stitcher.Holder> |
setStitchHolders |
private java.util.List<Stitcher.Slot> |
stitchSlots |
Constructor and Description |
---|
Stitcher(int maxWidthIn,
int maxHeightIn,
int maxTileDimensionIn,
int mipmapLevelStitcherIn) |
Modifier and Type | Method and Description |
---|---|
void |
addSprite(TextureAtlasSprite textureAtlas) |
private boolean |
allocateSlot(Stitcher.Holder p_94310_1_) |
void |
doStitch() |
private boolean |
expandAndAllocateSlot(Stitcher.Holder p_94311_1_) |
int |
getCurrentHeight() |
int |
getCurrentWidth() |
private static int |
getMipmapDimension(int p_147969_0_,
int p_147969_1_) |
java.util.List<TextureAtlasSprite> |
getStichSlots() |
private final int mipmapLevelStitcher
private final java.util.Set<Stitcher.Holder> setStitchHolders
private final java.util.List<Stitcher.Slot> stitchSlots
private int currentWidth
private int currentHeight
private final int maxWidth
private final int maxHeight
private final int maxTileDimension
public Stitcher(int maxWidthIn, int maxHeightIn, int maxTileDimensionIn, int mipmapLevelStitcherIn)
public int getCurrentWidth()
public int getCurrentHeight()
public void addSprite(TextureAtlasSprite textureAtlas)
public void doStitch()
public java.util.List<TextureAtlasSprite> getStichSlots()
private static int getMipmapDimension(int p_147969_0_, int p_147969_1_)
private boolean allocateSlot(Stitcher.Holder p_94310_1_)
private boolean expandAndAllocateSlot(Stitcher.Holder p_94311_1_)