public class Stitcher
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
Stitcher.Holder |
static interface |
Stitcher.ISpriteLoader |
static class |
Stitcher.Slot |
Modifier and Type | Field and Description |
---|---|
private static java.util.Comparator<Stitcher.Holder> |
COMPARATOR_HOLDER |
private int |
currentHeight |
private int |
currentWidth |
private static org.apache.logging.log4j.Logger |
LOGGER |
private int |
maxHeight |
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 mipmapLevelIn,
int maxWidthIn,
int maxHeightIn) |
Modifier and Type | Method and Description |
---|---|
void |
addSprite(TextureAtlasSprite.Info spriteInfoIn) |
private boolean |
allocateSlot(Stitcher.Holder holderIn) |
void |
doStitch() |
private boolean |
expandAndAllocateSlot(Stitcher.Holder holderIn) |
int |
getCurrentHeight() |
int |
getCurrentWidth() |
private static int |
getMipmapDimension(int dimensionIn,
int mipmapLevelIn) |
void |
getStichSlots(Stitcher.ISpriteLoader spriteLoaderIn) |
private static final org.apache.logging.log4j.Logger LOGGER
private static final java.util.Comparator<Stitcher.Holder> COMPARATOR_HOLDER
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
public int getCurrentWidth()
public int getCurrentHeight()
public void addSprite(TextureAtlasSprite.Info spriteInfoIn)
public void doStitch()
public void getStichSlots(Stitcher.ISpriteLoader spriteLoaderIn)
private static int getMipmapDimension(int dimensionIn, int mipmapLevelIn)
private boolean allocateSlot(Stitcher.Holder holderIn)
private boolean expandAndAllocateSlot(Stitcher.Holder holderIn)