Enum Class TextureFormat
- All Implemented Interfaces:
OGLVersioned, Serializable, Comparable<TextureFormat>, java.lang.constant.Constable
Texture internal storage format.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCompressed Alpha Only.Compressed Intensity Only.Compressed Luminance Only.Compressed Luminance Alpha Only.Compressed RGB Only.Compressed RGBA Only.White, Alpha only, default bit depth.Grayscale, No alpha, default bit depth.Grayscale with alpha, default bit depth.RGB, No alpha, default bit depth.RGBA, forced 16-bit.RGBA, default bit depth.RGBA, forced 16-bit.RGBA, forced 32-bit. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfloatbooleanbooleanisCore()static TextureFormatReturns the enum constant of this class with the specified name.static TextureFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LUMINANCE
Grayscale, No alpha, default bit depth. -
LUMINANCE_ALPHA
Grayscale with alpha, default bit depth. -
INTENSITY
White, Alpha only, default bit depth. -
RGB
RGB, No alpha, default bit depth. -
RGBA
RGBA, default bit depth. -
RGBA4
RGBA, forced 16-bit. -
RGB5A1
RGBA, forced 16-bit. -
RGBA8
RGBA, forced 32-bit. -
COMPRESSED_ALPHA
Compressed Alpha Only. -
COMPRESSED_LUMINANCE
Compressed Luminance Only. -
COMPRESSED_LUMINANCE_ALPHA
Compressed Luminance Alpha Only. -
COMPRESSED_INTENSITY
Compressed Intensity Only. -
COMPRESSED_RGB
Compressed RGB Only. -
COMPRESSED_RGBA
Compressed RGBA Only.
-
-
Field Details
-
glValue
public final int glValue
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
isCompressed
public boolean isCompressed() -
getSizeFactor
public float getSizeFactor() -
getVersion
- Specified by:
getVersionin interfaceOGLVersioned- Returns:
- the version that this object or value is available for (and higher).
-
isCore
public boolean isCore()- Specified by:
isCorein interfaceOGLVersioned- Returns:
- true if this object is considered part of core spec, false otherwise.
-