SpecificVbo.this

Store the given data in the Vbo. (Calls glBufferData.)

  1. this(T[] data_, GLenum usage)
    struct SpecificVbo(T)
    this
    (
    T[] data_
    ,
    GLenum usage = GL_STATIC_DRAW
    )
  2. this(size_t n, GLenum usage)
  3. void data(T[] data_, GLenum usage)

Examples

auto v = Vbo!int([1, 2, 3, 4, 5]);
v.data([2, 1, 0]); // Updates the Vbo with new data.

Meta