public static class PixmapPacker.Page
extends java.lang.Object
Constructor and Description |
---|
Page(PixmapPacker packer)
Creates a new page filled with the color provided by the
PixmapPacker.getTransparentColor() |
Modifier and Type | Method and Description |
---|---|
Pixmap |
getPixmap() |
OrderedMap<java.lang.String,PixmapPacker.PixmapPackerRectangle> |
getRects() |
Texture |
getTexture()
Returns the texture for this page, or null if the texture has not been created.
|
boolean |
updateTexture(Texture.TextureFilter minFilter,
Texture.TextureFilter magFilter,
boolean useMipMaps)
Creates the texture if it has not been created, else reuploads the entire page pixmap to the texture if the pixmap has
changed since this method was last called.
|
public Page(PixmapPacker packer)
PixmapPacker.getTransparentColor()
public Pixmap getPixmap()
public OrderedMap<java.lang.String,PixmapPacker.PixmapPackerRectangle> getRects()
public Texture getTexture()
#updateTexture(TextureFilter, TextureFilter, boolean)
public boolean updateTexture(Texture.TextureFilter minFilter, Texture.TextureFilter magFilter, boolean useMipMaps)