Package com.badlogic.gdx.graphics.g2d
Class PixmapPacker.Page
- java.lang.Object
-
- com.badlogic.gdx.graphics.g2d.PixmapPacker.Page
-
- Enclosing class:
- PixmapPacker
public static class PixmapPacker.Page extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Page(PixmapPacker packer)
Creates a new page filled with the color provided by thePixmapPacker.getTransparentColor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
Page
public Page(PixmapPacker packer)
Creates a new page filled with the color provided by thePixmapPacker.getTransparentColor()
-
-
Method Detail
-
getPixmap
public Pixmap getPixmap()
-
getRects
public OrderedMap<java.lang.String,PixmapPacker.PixmapPackerRectangle> getRects()
-
getTexture
public Texture getTexture()
Returns the texture for this page, or null if the texture has not been created.
-
updateTexture
public 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.- Returns:
- true if the texture was created or reuploaded.
-
-