Enum Class AttribType

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

public enum AttribType extends Enum<AttribType>
Attribute types for attribute states.
Author:
Matthew Tropiano
  • Enum Constant Details

    • ACCUM_BUFFER

      public static final AttribType ACCUM_BUFFER
      Accumulation buffer attribute bit.

      Governs current accumulation buffer clear value.

    • COLOR_BUFFER

      public static final AttribType COLOR_BUFFER
      Color buffer attribute bit.

      Governs:

      • Alpha test state, function, and values.
      • Blending state, function, and values.
      • GL_DITHER state.
      • Current drawing buffer(s).
      • Current logical operation state and function.
      • Current RGBA/index clear color and write masks.
    • CURRENT

      public static final AttribType CURRENT
      Current state attribute bit.

      Governs:

      • Current RGBA color or color index.
      • Current lighting normal and texture coordinate.
      • Current raster position, GL_CURRENT_RASTER_POSITION_VALID, and GL_EDGE_FLAG.
      • GL_DEPTH_BUFFER_BITGL_DEPTH_TEST state, depth buffer function, depth buffer clear value, and GL_DEPTH_WRITEMASK state.
    • DEPTH_BUFFER

      public static final AttribType DEPTH_BUFFER
    • ENABLE

      public static final AttribType ENABLE
      Current ENABLE state.

      Governs:

      • GL_ALPHA_TEST, GL_AUTO_NORMAL, and GL_BLEND state.
      • User-defined clipping plane state.
      • GL_COLOR_MATERIAL, GL_CULL_FACE, GL_DEPTH_TEST, GL_DITHER, GL_FOG, GL_LIGHTi, GL_LIGHTING, GL_LINE_SMOOTH, GL_LINE_STIPPLE, GL_LOGIC_OP, GL_MAP1_x, GL_MAP2_x, GL_NORMALIZE, GL_POINT_SMOOTH, GL_POLYGON_SMOOTH, GL_POLYGON_STIPPLE, GL_SCISSOR_TEST, GL_STENCIL_TEST, GL_TEXTURE_1D, GL_TEXTURE_2D, and GL_TEXTURE_GEN_x states.
    • EVAL

      public static final AttribType EVAL
    • FOG

      public static final AttribType FOG
    • HINT

      public static final AttribType HINT
    • LIGHTING

      public static final AttribType LIGHTING
    • LINE

      public static final AttribType LINE
    • LIST

      public static final AttribType LIST
    • PIXEL_MODE

      public static final AttribType PIXEL_MODE
    • POINT

      public static final AttribType POINT
    • POLYGON

      public static final AttribType POLYGON
    • POLYGON_STIPPLE

      public static final AttribType POLYGON_STIPPLE
    • SCISSOR

      public static final AttribType SCISSOR
    • STENCIL_BUFFER

      public static final AttribType STENCIL_BUFFER
    • TEXTURE

      public static final AttribType TEXTURE
    • TRANSFORM

      public static final AttribType TRANSFORM
    • VIEWPORT

      public static final AttribType VIEWPORT
  • Field Details

    • glValue

      public final int glValue
  • Method Details

    • values

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