Enum Class TextureFormat

java.lang.Object
java.lang.Enum<TextureFormat>
com.blackrook.gloop.opengl.enums.TextureFormat
All Implemented Interfaces:
OGLVersioned, Serializable, Comparable<TextureFormat>, java.lang.constant.Constable

public enum TextureFormat extends Enum<TextureFormat> implements OGLVersioned
Texture internal storage format.
  • Enum Constant Details

    • LUMINANCE

      public static final TextureFormat LUMINANCE
      Grayscale, No alpha, default bit depth.
    • LUMINANCE_ALPHA

      public static final TextureFormat LUMINANCE_ALPHA
      Grayscale with alpha, default bit depth.
    • INTENSITY

      public static final TextureFormat INTENSITY
      White, Alpha only, default bit depth.
    • RGB

      public static final TextureFormat RGB
      RGB, No alpha, default bit depth.
    • RGBA

      public static final TextureFormat RGBA
      RGBA, default bit depth.
    • RGBA4

      public static final TextureFormat RGBA4
      RGBA, forced 16-bit.
    • RGB5A1

      public static final TextureFormat RGB5A1
      RGBA, forced 16-bit.
    • RGBA8

      public static final TextureFormat RGBA8
      RGBA, forced 32-bit.
    • COMPRESSED_ALPHA

      public static final TextureFormat COMPRESSED_ALPHA
      Compressed Alpha Only.
    • COMPRESSED_LUMINANCE

      public static final TextureFormat COMPRESSED_LUMINANCE
      Compressed Luminance Only.
    • COMPRESSED_LUMINANCE_ALPHA

      public static final TextureFormat COMPRESSED_LUMINANCE_ALPHA
      Compressed Luminance Alpha Only.
    • COMPRESSED_INTENSITY

      public static final TextureFormat COMPRESSED_INTENSITY
      Compressed Intensity Only.
    • COMPRESSED_RGB

      public static final TextureFormat COMPRESSED_RGB
      Compressed RGB Only.
    • COMPRESSED_RGBA

      public static final TextureFormat COMPRESSED_RGBA
      Compressed RGBA Only.
  • Field Details

    • glValue

      public final int glValue
  • Method Details

    • values

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

      public static TextureFormat 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.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isCompressed

      public boolean isCompressed()
    • getSizeFactor

      public float getSizeFactor()
    • getVersion

      public OGLVersion getVersion()
      Specified by:
      getVersion in interface OGLVersioned
      Returns:
      the version that this object or value is available for (and higher).
    • isCore

      public boolean isCore()
      Specified by:
      isCore in interface OGLVersioned
      Returns:
      true if this object is considered part of core spec, false otherwise.