Enum Texture.Type

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Texture.Type>
    Enclosing class:
    Texture

    public static enum Texture.Type
    extends java.lang.Enum<Texture.Type>
    Pixel data type
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BYTE
      signed byte, 8-bit
      COMPRESSED
      a compressed type
      FLOAT
      float, 32-bit float, with 24 bits mantissa
      HALF
      half-float, 16-bit float with 10 bits mantissa
      INT
      signed int, 32-bit
      SHORT
      signed short, 16-bit
      UBYTE
      unsigned byte, 8-bit
      UINT
      unsigned int, 32-bit
      UINT_10F_11F_11F_REV
      unsigned 5.6 (5.5 for blue) float packed in a 32-bit integer.
      USHORT
      unsigned short, 16-bits
      USHORT_565
      unsigned 5/6 bit integers packed in a 16-bit short.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Texture.Type valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Texture.Type[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • UBYTE

        public static final Texture.Type UBYTE
        unsigned byte, 8-bit
      • BYTE

        public static final Texture.Type BYTE
        signed byte, 8-bit
      • USHORT

        public static final Texture.Type USHORT
        unsigned short, 16-bits
      • SHORT

        public static final Texture.Type SHORT
        signed short, 16-bit
      • UINT

        public static final Texture.Type UINT
        unsigned int, 32-bit
      • INT

        public static final Texture.Type INT
        signed int, 32-bit
      • HALF

        public static final Texture.Type HALF
        half-float, 16-bit float with 10 bits mantissa
      • FLOAT

        public static final Texture.Type FLOAT
        float, 32-bit float, with 24 bits mantissa
      • COMPRESSED

        public static final Texture.Type COMPRESSED
        a compressed type
      • UINT_10F_11F_11F_REV

        public static final Texture.Type UINT_10F_11F_11F_REV
        unsigned 5.6 (5.5 for blue) float packed in a 32-bit integer.
      • USHORT_565

        public static final Texture.Type USHORT_565
        unsigned 5/6 bit integers packed in a 16-bit short.
    • Method Detail

      • values

        public static Texture.Type[] 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 (Texture.Type c : Texture.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Texture.Type 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 name
        java.lang.NullPointerException - if the argument is null