Enum Class QueryWaitType

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

public enum QueryWaitType extends Enum<QueryWaitType>
Query wait types, for conditional rendering.
Author:
Matthew Tropiano
  • Enum Constant Details

    • WAIT

      public static final QueryWaitType WAIT
      Wait for query to complete.
    • NO_WAIT

      public static final QueryWaitType NO_WAIT
      Don't wait for query to complete, use current result state.
    • BY_REGION_WAIT

      public static final QueryWaitType BY_REGION_WAIT
      Wait for query to complete, but optionally discard based on framebuffer region.
    • BY_REGION_NO_WAIT

      public static final QueryWaitType BY_REGION_NO_WAIT
      Don't wait for query to complete and use current result state, but optionally discard based on framebuffer region.
  • Field Details

    • glValue

      public final int glValue
  • Method Details

    • values

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