Package arc.graphics.g2d
Class PixmapPacker.Page
java.lang.Object
arc.graphics.g2d.PixmapPacker.Page
- Direct Known Subclasses:
PixmapPacker.GuillotineStrategy.GuillotinePage
- Enclosing class:
- PixmapPacker
-
Constructor Summary
ConstructorDescriptionPage
(PixmapPacker packer) Creates a new page filled with the color provided by thePixmapPacker.getTransparentColor()
-
Method Summary
Modifier and TypeMethodDescriptiongetRects()
Returns the texture for this page, or null if the texture has not been created.void
setDirty
(boolean dirty) 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 Details
-
Page
Creates a new page filled with the color provided by thePixmapPacker.getTransparentColor()
-
Page
-
-
Method Details
-
setDirty
public void setDirty(boolean dirty) -
getPixmap
-
getRects
-
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.
-