Enum Class GLErrorCode

java.lang.Object
java.lang.Enum<GLErrorCode>
dev.pfaff.glass.opengl.enums.GLErrorCode
All Implemented Interfaces:
GLEnum, Serializable, Comparable<GLErrorCode>, Constable

public enum GLErrorCode extends Enum<GLErrorCode> implements GLEnum
  • Enum Constant Details

    • NO_ERROR

      public static final GLErrorCode NO_ERROR
    • INVALID_ENUM

      public static final GLErrorCode INVALID_ENUM
    • INVALID_VALUE

      public static final GLErrorCode INVALID_VALUE
    • INVALID_OPERATION

      public static final GLErrorCode INVALID_OPERATION
    • STACK_OVERFLOW

      public static final GLErrorCode STACK_OVERFLOW
    • STACK_UNDERFLOW

      public static final GLErrorCode STACK_UNDERFLOW
    • OUT_OF_MEMORY

      public static final GLErrorCode OUT_OF_MEMORY
    • INVALID_FRAMEBUFFER_OPERATION

      public static final GLErrorCode INVALID_FRAMEBUFFER_OPERATION
    • TABLE_TOO_LARGE_EXT

      public static final GLErrorCode TABLE_TOO_LARGE_EXT
    • TEXTURE_TOO_LARGE_EXT

      public static final GLErrorCode TEXTURE_TOO_LARGE_EXT
  • Field Details

  • Method Details

    • values

      public static GLErrorCode[] 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 GLErrorCode 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
    • glEnum

      public int glEnum()
      Specified by:
      glEnum in interface GLEnum
    • fromGLEnum

      public static GLErrorCode fromGLEnum(int glEnum)
      Returns the enum constant corresponding to the provided raw value.
      Throws:
      IllegalArgumentException - if the provided raw value does not exist in this enum group.