com.triangularpixels.rebirth.image
Enum TextureFormat
java.lang.Object
java.lang.Enum<TextureFormat>
com.triangularpixels.rebirth.image.TextureFormat
- All Implemented Interfaces:
- Serializable, Comparable<TextureFormat>
public enum TextureFormat
- extends Enum<TextureFormat>
RGB
public static final TextureFormat RGB
RGBA
public static final TextureFormat RGBA
values
public static final TextureFormat[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(TextureFormat c : TextureFormat.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static TextureFormat valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
glValue
public int glValue()
bytesPerPixel
public int bytesPerPixel()
Copyright © 2009 TriangularPixels.com. All Rights Reserved.