public static enum Pixmap.Format extends Enum<Pixmap.Format>
Enum Constant and Description |
---|
Alpha |
Intensity |
LuminanceAlpha |
RGB565 |
RGB888 |
RGBA4444 |
RGBA8888 |
Modifier and Type | Method and Description |
---|---|
static Pixmap.Format |
fromGdx2DPixmapFormat(int format) |
static int |
toGdx2DPixmapFormat(Pixmap.Format format) |
static int |
toGlFormat(Pixmap.Format format) |
static int |
toGlType(Pixmap.Format format) |
static Pixmap.Format |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Pixmap.Format[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Pixmap.Format Alpha
public static final Pixmap.Format Intensity
public static final Pixmap.Format LuminanceAlpha
public static final Pixmap.Format RGB565
public static final Pixmap.Format RGBA4444
public static final Pixmap.Format RGB888
public static final Pixmap.Format RGBA8888
public static Pixmap.Format[] values()
for (Pixmap.Format c : Pixmap.Format.values()) System.out.println(c);
public static Pixmap.Format valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static int toGdx2DPixmapFormat(Pixmap.Format format)
public static Pixmap.Format fromGdx2DPixmapFormat(int format)
public static int toGlFormat(Pixmap.Format format)
public static int toGlType(Pixmap.Format format)
Copyright © 2019. All rights reserved.