Enum Class NativeImage.Format

java.lang.Object
java.lang.Enum<NativeImage.Format>
com.mojang.blaze3d.platform.NativeImage.Format
所有已实现的接口:
Serializable, Comparable<NativeImage.Format>, Constable
封闭类:
NativeImage

public static enum NativeImage.Format extends Enum<NativeImage.Format>
  • 枚举常量详细资料

  • 字段详细资料

    • components

      final int components
    • glFormat

      private final int glFormat
    • hasRed

      private final boolean hasRed
    • hasGreen

      private final boolean hasGreen
    • hasBlue

      private final boolean hasBlue
    • hasLuminance

      private final boolean hasLuminance
    • hasAlpha

      private final boolean hasAlpha
    • redOffset

      private final int redOffset
    • greenOffset

      private final int greenOffset
    • blueOffset

      private final int blueOffset
    • luminanceOffset

      private final int luminanceOffset
    • alphaOffset

      private final int alphaOffset
    • supportedByStb

      private final boolean supportedByStb
  • 构造器详细资料

    • Format

      private Format(int pComponents, int pGlFormat, boolean pHasRed, boolean pHasGreen, boolean pHasBlue, boolean pHasLuminance, boolean pHasAlpha, int pRedOffset, int pGreenOffset, int pBlueOffset, int pLuminanceOffset, int pAlphaOffset, boolean pSupportedByStb)
  • 方法详细资料

    • values

      public static NativeImage.Format[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NativeImage.Format valueOf(String name)
      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.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • components

      public int components()
    • setPackPixelStoreState

      public void setPackPixelStoreState()
    • setUnpackPixelStoreState

      public void setUnpackPixelStoreState()
    • glFormat

      public int glFormat()
    • hasRed

      public boolean hasRed()
    • hasGreen

      public boolean hasGreen()
    • hasBlue

      public boolean hasBlue()
    • hasLuminance

      public boolean hasLuminance()
    • hasAlpha

      public boolean hasAlpha()
    • redOffset

      public int redOffset()
    • greenOffset

      public int greenOffset()
    • blueOffset

      public int blueOffset()
    • luminanceOffset

      public int luminanceOffset()
    • alphaOffset

      public int alphaOffset()
    • hasLuminanceOrRed

      public boolean hasLuminanceOrRed()
    • hasLuminanceOrGreen

      public boolean hasLuminanceOrGreen()
    • hasLuminanceOrBlue

      public boolean hasLuminanceOrBlue()
    • hasLuminanceOrAlpha

      public boolean hasLuminanceOrAlpha()
    • luminanceOrRedOffset

      public int luminanceOrRedOffset()
    • luminanceOrGreenOffset

      public int luminanceOrGreenOffset()
    • luminanceOrBlueOffset

      public int luminanceOrBlueOffset()
    • luminanceOrAlphaOffset

      public int luminanceOrAlphaOffset()
    • supportedByStb

      public boolean supportedByStb()
    • getStbFormat

      static NativeImage.Format getStbFormat(int pChannels)