Enum DDSType

java.lang.Object
java.lang.Enum<DDSType>
com.twelvemonkeys.imageio.plugins.dds.DDSType
All Implemented Interfaces:
Serializable, Comparable<DDSType>, java.lang.constant.Constable

  • Enum Constant Details

    • DXT1

      public static final DDSType DXT1
    • DXT2

      public static final DDSType DXT2
    • DXT3

      public static final DDSType DXT3
    • DXT4

      public static final DDSType DXT4
    • DXT5

      public static final DDSType DXT5
    • ATI1

      public static final DDSType ATI1
    • BC4U

      public static final DDSType BC4U
    • BC4S

      public static final DDSType BC4S
    • ATI2

      public static final DDSType ATI2
    • BC5U

      public static final DDSType BC5U
    • BC5S

      public static final DDSType BC5S
    • DXT10

      public static final DDSType DXT10
    • A1R5G5B5

      public static final DDSType A1R5G5B5
    • X1R5G5B5

      public static final DDSType X1R5G5B5
    • A4R4G4B4

      public static final DDSType A4R4G4B4
    • X4R4G4B4

      public static final DDSType X4R4G4B4
    • R5G6B5

      public static final DDSType R5G6B5
    • R8G8B8

      public static final DDSType R8G8B8
    • A8B8G8R8

      public static final DDSType A8B8G8R8
    • X8B8G8R8

      public static final DDSType X8B8G8R8
    • A8R8G8B8

      public static final DDSType A8R8G8B8
    • X8R8G8B8

      public static final DDSType X8R8G8B8
  • Field Details

    • fourCC

      private final int fourCC
    • blockSize

      private final int blockSize
    • dxgiFormat

      private final int dxgiFormat
    • compression

      final BlockCompression compression
    • rgbaMasks

      final int[] rgbaMasks
  • Constructor Details

    • DDSType

      private DDSType(int fourCC, int blockSize, int dxgiFormat, BlockCompression compression)
    • 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

      public static DDSType[] 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

      public static DDSType 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
    • fourCC

      public int fourCC()
    • blockSize

      public int blockSize()
    • isFourCC

      public boolean isFourCC()
    • isBlockCompression

      public boolean isBlockCompression()
    • dxgiFormat

      public int dxgiFormat()
    • fromFourCC

      public static DDSType fromFourCC(int fourCC)
    • fromDXGIFormat

      public static DDSType fromDXGIFormat(int dxgiFormat)