Enum Class DebugMessageSource

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

public enum DebugMessageSource extends Enum<DebugMessageSource>
Enumeration of Debug sources for debug messages.
  • Enum Constant Details

    • APPLICATION

      public static final DebugMessageSource APPLICATION
      Originated from application.
    • THIRD_PARTY

      public static final DebugMessageSource THIRD_PARTY
      Originated from a third party.
    • API

      public static final DebugMessageSource API
      Originated from the API.
    • SHADER_COMPILER

      public static final DebugMessageSource SHADER_COMPILER
      Originated from the shader compiler.
    • WINDOW_SYSTEM

      public static final DebugMessageSource WINDOW_SYSTEM
      Originated from the window system.
    • OTHER

      public static final DebugMessageSource OTHER
      Originated from some other source.
  • Field Details

    • glValue

      public final int glValue
  • Method Details

    • values

      public static DebugMessageSource[] 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 DebugMessageSource 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
    • getByGLValue

      public static DebugMessageSource getByGLValue(int glValue)
      Gets an enum by its corresponding GL value.
      Parameters:
      glValue - the GL value to use.
      Returns:
      the enum value, or null for no corresponding value.