| Package | Description |
|---|---|
| com.badlogic.gdx.assets.loaders | |
| com.badlogic.gdx.graphics | |
| com.badlogic.gdx.graphics.g2d | |
| com.badlogic.gdx.graphics.glutils |
| Modifier and Type | Method and Description |
|---|---|
Pixmap |
PixmapLoader.loadSync(AssetManager manager,
java.lang.String fileName,
PixmapLoader.PixmapParameter parameter) |
| Modifier and Type | Method and Description |
|---|---|
Pixmap |
TextureData.consumePixmap()
Returns the
Pixmap for upload by Texture. |
static Pixmap |
PixmapIO.readCIM(FileHandle file)
Reads the
Pixmap from the given file, assuming the Pixmap was written with the
PixmapIO.writeCIM(FileHandle, Pixmap) method. |
| Modifier and Type | Method and Description |
|---|---|
void |
Texture.draw(Pixmap pixmap,
int x,
int y)
Draws the given
Pixmap to the texture at position x, y. |
void |
Pixmap.drawPixmap(Pixmap pixmap,
int x,
int y)
Draws an area form another Pixmap to this Pixmap.
|
void |
Pixmap.drawPixmap(Pixmap pixmap,
int x,
int y,
int srcx,
int srcy,
int srcWidth,
int srcHeight)
Draws an area form another Pixmap to this Pixmap.
|
void |
Pixmap.drawPixmap(Pixmap pixmap,
int srcx,
int srcy,
int srcWidth,
int srcHeight,
int dstx,
int dsty,
int dstWidth,
int dstHeight)
Draws an area form another Pixmap to this Pixmap.
|
static void |
PixmapIO.writeCIM(FileHandle file,
Pixmap pixmap)
Writes the
Pixmap to the given file using a custom compression scheme. |
static void |
PixmapIO.writePNG(FileHandle file,
Pixmap pixmap)
Writes the pixmap as a PNG.
|
| Constructor and Description |
|---|
Texture(Pixmap pixmap) |
Texture(Pixmap pixmap,
boolean useMipMaps) |
Texture(Pixmap pixmap,
Pixmap.Format format,
boolean useMipMaps) |
| Modifier and Type | Method and Description |
|---|---|
Pixmap |
PixmapPacker.Page.getPixmap() |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
PixmapPacker.pack(java.lang.String name,
Pixmap image)
Inserts the given
Pixmap. |
| Constructor and Description |
|---|
PixmapPacker.ManagedPixmapTextureData(Pixmap pixmap,
Pixmap.Format format,
boolean useMipMaps) |
| Modifier and Type | Method and Description |
|---|---|
Pixmap |
ETC1TextureData.consumePixmap() |
Pixmap |
FileTextureData.consumePixmap() |
Pixmap |
FloatTextureData.consumePixmap() |
Pixmap |
PixmapTextureData.consumePixmap() |
static Pixmap |
ETC1.decodeImage(ETC1.ETC1Data etc1Data,
Pixmap.Format format)
Takes ETC1 compressed image data and converts it to a
Pixmap.Format.RGB565 or Pixmap.Format.RGB888 Pixmap. |
| Modifier and Type | Method and Description |
|---|---|
static ETC1.ETC1Data |
ETC1.encodeImage(Pixmap pixmap)
Encodes the image via the ETC1 compression scheme.
|
static ETC1.ETC1Data |
ETC1.encodeImagePKM(Pixmap pixmap)
Encodes the image via the ETC1 compression scheme.
|
static void |
MipMapGenerator.generateMipMap(Pixmap pixmap,
int textureWidth,
int textureHeight,
boolean disposePixmap)
|
| Constructor and Description |
|---|
FileTextureData(FileHandle file,
Pixmap preloadedPixmap,
Pixmap.Format format,
boolean useMipMaps) |
PixmapTextureData(Pixmap pixmap,
Pixmap.Format format,
boolean useMipMaps,
boolean disposePixmap) |