Enum DX10DXGIFormat
- java.lang.Object
-
- java.lang.Enum<DX10DXGIFormat>
-
- com.twelvemonkeys.imageio.plugins.dds.DX10DXGIFormat
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DX10DXGIFormat>
public enum DX10DXGIFormat extends java.lang.Enum<DX10DXGIFormat>
Enum that lists a certain types of DXGI Format this reader supports to read. DXGI Format List
-
-
Field Summary
Fields Modifier and Type Field Description private DDSTypeddsTypeprivate java.util.function.IntPredicatedxgiFormat
-
Constructor Summary
Constructors Modifier Constructor Description privateDX10DXGIFormat(DDSType ddsType, java.util.function.IntPredicate dxgiFormat)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.util.function.IntPredicateexactly(int... acceptedValues)(package private) DDSTypegetCorrespondingType()(package private) static DX10DXGIFormatgetFormat(int value)private static java.util.function.IntPredicaterangeInclusive(int from, int to)static DX10DXGIFormatvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DX10DXGIFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BC1
public static final DX10DXGIFormat BC1
-
BC2
public static final DX10DXGIFormat BC2
-
BC3
public static final DX10DXGIFormat BC3
-
B8G8R8A8
public static final DX10DXGIFormat B8G8R8A8
-
B8G8R8X8
public static final DX10DXGIFormat B8G8R8X8
-
R8G8B8A8
public static final DX10DXGIFormat R8G8B8A8
-
-
Field Detail
-
ddsType
private final DDSType ddsType
-
dxgiFormat
private final java.util.function.IntPredicate dxgiFormat
-
-
Constructor Detail
-
DX10DXGIFormat
private DX10DXGIFormat(DDSType ddsType, java.util.function.IntPredicate dxgiFormat)
-
-
Method Detail
-
values
public static DX10DXGIFormat[] 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 (DX10DXGIFormat c : DX10DXGIFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DX10DXGIFormat valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getCorrespondingType
DDSType getCorrespondingType()
-
getFormat
static DX10DXGIFormat getFormat(int value)
-
exactly
private static java.util.function.IntPredicate exactly(int... acceptedValues)
- Parameters:
acceptedValues- values in DXGI Formats List, passed values are expected to be in ascending order
-
rangeInclusive
private static java.util.function.IntPredicate rangeInclusive(int from, int to)
-
-