Enum Class StateGuard.Slot

java.lang.Object
java.lang.Enum<StateGuard.Slot>
lol.trq.helios.state.StateGuard.Slot
All Implemented Interfaces:
Serializable, Comparable<StateGuard.Slot>, Constable
Enclosing class:
StateGuard

public static enum StateGuard.Slot extends Enum<StateGuard.Slot>
A piece of GL state the guard can save and restore.
  • Enum Constant Details

    • BLEND

      public static final StateGuard.Slot BLEND
      GL_BLEND.
    • BLEND_FUNC

      public static final StateGuard.Slot BLEND_FUNC
      The four separate blend factors.
    • DEPTH_TEST

      public static final StateGuard.Slot DEPTH_TEST
      GL_DEPTH_TEST.
    • DEPTH_MASK

      public static final StateGuard.Slot DEPTH_MASK
      The depth write mask.
    • CULL

      public static final StateGuard.Slot CULL
      GL_CULL_FACE.
    • PROGRAM

      public static final StateGuard.Slot PROGRAM
      The program in use.
    • FRAMEBUFFER

      public static final StateGuard.Slot FRAMEBUFFER
      The framebuffer bound to GL_FRAMEBUFFER.
    • VIEWPORT

      public static final StateGuard.Slot VIEWPORT
      The viewport.
    • ARRAY_BUFFER

      public static final StateGuard.Slot ARRAY_BUFFER
      The buffer bound to GL_ARRAY_BUFFER.
    • VERTEX_ARRAY

      public static final StateGuard.Slot VERTEX_ARRAY
      GL_VERTEX_ARRAY_BINDING.
    • ACTIVE_TEXTURE

      public static final StateGuard.Slot ACTIVE_TEXTURE
      The active texture unit.
    • TEXTURES

      public static final StateGuard.Slot TEXTURES
      The 2D texture bound on each touched unit.
    • SCISSOR

      public static final StateGuard.Slot SCISSOR
      GL_SCISSOR_TEST and the scissor box.
    • STENCIL

      public static final StateGuard.Slot STENCIL
      GL_STENCIL_TEST, the stencil function, operations and write mask.
    • COLOR_MASK

      public static final StateGuard.Slot COLOR_MASK
      The colour write mask.
  • Method Details

    • values

      public static StateGuard.Slot[] 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 StateGuard.Slot 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