Package com.badlogic.gdx.graphics.g2d
Class PixmapPacker.GuillotineStrategy
- java.lang.Object
-
- com.badlogic.gdx.graphics.g2d.PixmapPacker.GuillotineStrategy
-
- All Implemented Interfaces:
PixmapPacker.PackStrategy
- Enclosing class:
- PixmapPacker
public static class PixmapPacker.GuillotineStrategy extends java.lang.Object implements PixmapPacker.PackStrategy
Does bin packing by inserting to the right or below previously packed rectangles. This is good at packing arbitrarily sized images.
-
-
Constructor Summary
Constructors Constructor Description GuillotineStrategy()
-
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> pixmaps)
-
-
-
Method Detail
-
sort
public void sort(Array<Pixmap> pixmaps)
- 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
-
-