|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<TextureImageFormat>
org.jagatoo.opengl.enums.TextureImageFormat
public enum TextureImageFormat
The TextureImageFormat is an enum-abstraction of the possible
formats of a texture image (one mipmap level of a texture), that
OpenGL supports.
| Enum Constant Summary | |
|---|---|
ALPHA
Texture contains only alpha values. |
|
DEPTH
Texture contains 24 bit depth. |
|
INTENSITY
Texture contains only intensity values. |
|
LUMINANCE
Texture contains only luminance values. |
|
LUMINANCE_ALPHA
Texture contains luminance and alpha values. |
|
RGB
Texture contains red, green and blue color values. |
|
RGB_DXT1
compressed texture format. |
|
RGBA
Texture contains red, green, blue and alpha color values. |
|
RGBA_DXT1
compressed texture format. |
|
RGBA_DXT3
compressed texture format. |
|
RGBA_DXT5
compressed texture format. |
|
| Method Summary | |
|---|---|
int |
getPixelSize()
|
boolean |
hasAlpha()
|
boolean |
isCompressed()
|
int |
toOpenGL()
|
static TextureImageFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TextureImageFormat[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final TextureImageFormat INTENSITY
public static final TextureImageFormat LUMINANCE
public static final TextureImageFormat ALPHA
public static final TextureImageFormat LUMINANCE_ALPHA
public static final TextureImageFormat DEPTH
public static final TextureImageFormat RGB
public static final TextureImageFormat RGBA
public static final TextureImageFormat RGBA_DXT1
public static final TextureImageFormat RGBA_DXT3
public static final TextureImageFormat RGBA_DXT5
public static final TextureImageFormat RGB_DXT1
| Method Detail |
|---|
public static TextureImageFormat[] values()
for (TextureImageFormat c : TextureImageFormat.values()) System.out.println(c);
public static TextureImageFormat valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic final int getPixelSize()
public final boolean hasAlpha()
public final boolean isCompressed()
public final int toOpenGL()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||