Enum DDSType
- All Implemented Interfaces:
Serializable, Comparable<DDSType>, java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int(package private) final BlockCompressionprivate final intprivate final int(package private) final int[] -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDDSType(int blockSize, int dxgiFormat, int[] rgbaMasks) privateDDSType(int fourCC, int blockSize, int dxgiFormat, BlockCompression compression) privateDDSType(int fourCC, int blockSize, int dxgiFormat, BlockCompression compression, int[] rgbaMasks) -
Method Summary
Modifier and TypeMethodDescriptionintintintfourCC()static DDSTypefromDXGIFormat(int dxgiFormat) static DDSTypefromFourCC(int fourCC) booleanbooleanisFourCC()static DDSTypeReturns the enum constant of this type with the specified name.static DDSType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DXT1
-
DXT2
-
DXT3
-
DXT4
-
DXT5
-
ATI1
-
BC4U
-
BC4S
-
ATI2
-
BC5U
-
BC5S
-
DXT10
-
A1R5G5B5
-
X1R5G5B5
-
A4R4G4B4
-
X4R4G4B4
-
R5G6B5
-
R8G8B8
-
A8B8G8R8
-
X8B8G8R8
-
A8R8G8B8
-
X8R8G8B8
-
-
Field Details
-
fourCC
private final int fourCC -
blockSize
private final int blockSize -
dxgiFormat
private final int dxgiFormat -
compression
-
rgbaMasks
final int[] rgbaMasks
-
-
Constructor Details
-
DDSType
-
DDSType
private DDSType(int blockSize, int dxgiFormat, int[] rgbaMasks) -
DDSType
private DDSType(int fourCC, int blockSize, int dxgiFormat, BlockCompression compression, int[] rgbaMasks)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-
fourCC
public int fourCC() -
blockSize
public int blockSize() -
isFourCC
public boolean isFourCC() -
isBlockCompression
public boolean isBlockCompression() -
dxgiFormat
public int dxgiFormat() -
fromFourCC
-
fromDXGIFormat
-