SpecificVbo.data

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

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

Examples

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

Meta