com.threerings.opengl.renderer.config
Enum TextureConfig.Format
java.lang.Object
java.lang.Enum<TextureConfig.Format>
com.threerings.opengl.renderer.config.TextureConfig.Format
- All Implemented Interfaces:
- Serializable, Comparable<TextureConfig.Format>
- Enclosing class:
- TextureConfig
public static enum TextureConfig.Format
- extends Enum<TextureConfig.Format>
Format constants.
DEFAULT
public static final TextureConfig.Format DEFAULT
COMPRESSED_DEFAULT
public static final TextureConfig.Format COMPRESSED_DEFAULT
ALPHA
public static final TextureConfig.Format ALPHA
COMPRESSED_ALPHA
public static final TextureConfig.Format COMPRESSED_ALPHA
LUMINANCE
public static final TextureConfig.Format LUMINANCE
COMPRESSED_LUMINANCE
public static final TextureConfig.Format COMPRESSED_LUMINANCE
LUMINANCE_ALPHA
public static final TextureConfig.Format LUMINANCE_ALPHA
COMPRESSED_LUMINANCE_ALPHA
public static final TextureConfig.Format COMPRESSED_LUMINANCE_ALPHA
INTENSITY
public static final TextureConfig.Format INTENSITY
COMPRESSED_INTENSITY
public static final TextureConfig.Format COMPRESSED_INTENSITY
RGB
public static final TextureConfig.Format RGB
COMPRESSED_RGB
public static final TextureConfig.Format COMPRESSED_RGB
RGBA
public static final TextureConfig.Format RGBA
COMPRESSED_RGBA
public static final TextureConfig.Format COMPRESSED_RGBA
DEPTH_COMPONENT
public static final TextureConfig.Format DEPTH_COMPONENT
_constant
protected int _constant
_uncompressed
protected int _uncompressed
_depth
protected boolean _depth
values
public static TextureConfig.Format[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (TextureConfig.Format c : TextureConfig.Format.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static TextureConfig.Format 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
NullPointerException - if the argument is null
getConstant
public int getConstant(BufferedImage image)
- Returns the OpenGL constant associated with this format.
- Parameters:
image - the image used to guess the format if necessary.
isSupported
public boolean isSupported(boolean fallback)