Enum Class BufferTargetType

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

public enum BufferTargetType extends Enum<BufferTargetType> implements OGLVersioned
Type target enumeration for one-dimensional buffer types.
Author:
Matthew Tropiano
  • Enum Constant Details

    • GEOMETRY

      public static final BufferTargetType GEOMETRY
      Buffer holds GEOMETRY information (internally, this is GL_ARRAY_BUFFER).
    • INDICES

      public static final BufferTargetType INDICES
      Buffer holds ELEMENT INDEX information (internally, this is GL_ELEMENT_ARRAY_BUFFER).
    • RAW_DATA

      public static final BufferTargetType RAW_DATA
      Buffer contains packed data (raw data specific to OpenGL implementation).
    • PIXEL

      public static final BufferTargetType PIXEL
      Buffer contains unpacked data (raw pixel data to be sent to OpenGL or read from OpenGL to an application).
    • TRANSFORM_FEEDBACK

      public static final BufferTargetType TRANSFORM_FEEDBACK
      Buffer is a Transform Feedback Buffer.
    • UNIFORM

      public static final BufferTargetType UNIFORM
      Buffer is a Uniform Buffer.
    • TEXTURE

      public static final BufferTargetType TEXTURE
      Buffer is a Texture Buffer.
    • COPY_READ

      public static final BufferTargetType COPY_READ
      Buffer is a Copy Read Buffer.
    • COPY_WRITE

      public static final BufferTargetType COPY_WRITE
      Buffer is a Copy Write Buffer.
    • DRAW_INDIRECT

      public static final BufferTargetType DRAW_INDIRECT
      Buffer is a Draw Indirect Buffer.
    • ATOMIC_COUNTER

      public static final BufferTargetType ATOMIC_COUNTER
      Buffer is an Atomic Counter Buffer.
    • DISPATCH_INDIRECT

      public static final BufferTargetType DISPATCH_INDIRECT
      Buffer is a Dispatch Indirect Buffer.
    • SHADER_STORAGE

      public static final BufferTargetType SHADER_STORAGE
      Buffer is a Shader Storage Buffer.
    • PARAMETER_BUFFER

      public static final BufferTargetType PARAMETER_BUFFER
      Buffer is a Parameter Buffer.
  • Field Details

    • glValue

      public final int glValue
  • Method Details

    • values

      public static BufferTargetType[] 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 BufferTargetType 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
    • getVersion

      public OGLVersion getVersion()
      Specified by:
      getVersion in interface OGLVersioned
      Returns:
      the version that this object or value is available for (and higher).
    • isCore

      public boolean isCore()
      Specified by:
      isCore in interface OGLVersioned
      Returns:
      true if this object is considered part of core spec, false otherwise.