Package com.badlogic.gdx.graphics.g2d
Class PixmapPacker.SkylineStrategy
- java.lang.Object
-
- com.badlogic.gdx.graphics.g2d.PixmapPacker.SkylineStrategy
-
- All Implemented Interfaces:
PixmapPacker.PackStrategy
- Enclosing class:
- PixmapPacker
public static class PixmapPacker.SkylineStrategy extends java.lang.Object implements PixmapPacker.PackStrategy
Does bin packing by inserting in rows. This is good at packing images that have similar heights.
-
-
Constructor Summary
Constructors Constructor Description SkylineStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PixmapPacker.Pagepack(PixmapPacker packer, java.lang.String name, Rectangle rect)Returns the page the rectangle should be placed in and modifies the specified rectangle position.voidsort(Array<Pixmap> images)
-
-
-
Method Detail
-
sort
public void sort(Array<Pixmap> images)
- Specified by:
sortin interfacePixmapPacker.PackStrategy
-
pack
public PixmapPacker.Page pack(PixmapPacker packer, java.lang.String name, Rectangle rect)
Description copied from interface:PixmapPacker.PackStrategyReturns the page the rectangle should be placed in and modifies the specified rectangle position.- Specified by:
packin interfacePixmapPacker.PackStrategy
-
-