Buffer.this

Initualizes the buffer and sets data.

  1. this()
  2. this(T data, GLenum hint)
    class Buffer
    this
    (
    T
    )
    (
    const auto ref T data
    ,
    GLenum hint = GL_STATIC_DRAW
    )
    if (
    isArray!T
    )
  3. this(T ptr, size_t size, GLenum hint)

Parameters

data T

any kind of data.

hint GLenum

Specifies the expected usage pattern of the data store.

Meta