VBO.setData

Set the data of the buffer. Uses glBufferData.

  1. void setData(float[] data, GLenum usage)
    class VBO
    @system
    void
    setData
    (
    float[] data
    ,
    GLenum usage = GL_STATIC_DRAW
    )
  2. void setData(uint[] data, GLenum usage)

Parameters

data float[]

The Data to be placed in the buffer.

usage GLenum

See OpenGL docs on usage parameter in glBufferData.

Meta