Enum Class GLBufferTarget

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

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

    • PARAMETER_BUFFER

      public static final GLBufferTarget PARAMETER_BUFFER
    • ARRAY_BUFFER

      public static final GLBufferTarget ARRAY_BUFFER
    • ELEMENT_ARRAY_BUFFER

      public static final GLBufferTarget ELEMENT_ARRAY_BUFFER
    • PIXEL_PACK_BUFFER

      public static final GLBufferTarget PIXEL_PACK_BUFFER
    • PIXEL_UNPACK_BUFFER

      public static final GLBufferTarget PIXEL_UNPACK_BUFFER
    • UNIFORM_BUFFER

      public static final GLBufferTarget UNIFORM_BUFFER
    • TEXTURE_BUFFER

      public static final GLBufferTarget TEXTURE_BUFFER
    • TRANSFORM_FEEDBACK_BUFFER

      public static final GLBufferTarget TRANSFORM_FEEDBACK_BUFFER
    • COPY_READ_BUFFER

      public static final GLBufferTarget COPY_READ_BUFFER
    • COPY_WRITE_BUFFER

      public static final GLBufferTarget COPY_WRITE_BUFFER
    • DRAW_INDIRECT_BUFFER

      public static final GLBufferTarget DRAW_INDIRECT_BUFFER
    • SHADER_STORAGE_BUFFER

      public static final GLBufferTarget SHADER_STORAGE_BUFFER
    • DISPATCH_INDIRECT_BUFFER

      public static final GLBufferTarget DISPATCH_INDIRECT_BUFFER
    • QUERY_BUFFER

      public static final GLBufferTarget QUERY_BUFFER
    • ATOMIC_COUNTER_BUFFER

      public static final GLBufferTarget ATOMIC_COUNTER_BUFFER
  • Field Details

  • Method Details

    • values

      public static GLBufferTarget[] 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 GLBufferTarget 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 GLBufferTarget 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.
    • pName

      public GLGetPName pName()
      If there is a GLGetPName value that corresponds to this buffer target's binding, it is returned. Otherwise, null is returned.