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.Page
pack(PixmapPacker packer, java.lang.String name, Rectangle rect)
Returns the page the rectangle should be placed in and modifies the specified rectangle position.void
sort(Array<Pixmap> images)
-
-
-
Method Detail
-
sort
public void sort(Array<Pixmap> images)
- Specified by:
sort
in interfacePixmapPacker.PackStrategy
-
pack
public PixmapPacker.Page pack(PixmapPacker packer, java.lang.String name, Rectangle rect)
Description copied from interface:PixmapPacker.PackStrategy
Returns the page the rectangle should be placed in and modifies the specified rectangle position.- Specified by:
pack
in interfacePixmapPacker.PackStrategy
-
-