I=(S=Uno.Graphics.VertexBuffer = function(){
}).prototype;

I.SetData = function(data)
{
    gl.bindBuffer(34962, this.buf);
    gl.bufferSubData(34962, 0, data);
    gl.bindBuffer(34962, null);
};

I.GLHandle = function()
{
    return this.buf;
};

S.$0 = function(sizeInBytes, dynamic, $this) {
    if (!$this) $this = new Uno.Graphics.VertexBuffer;
    $this.sizeInBytes = sizeInBytes;
    $this.dynamic = dynamic;
    $this.buf = gl.createBuffer();
    var usage = 35044;

    if (dynamic)
    {
        usage = 35048;
    }

    gl.bindBuffer(34962, $this.buf);
    gl.bufferData(34962, sizeInBytes, usage);
    gl.bindBuffer(34962, null);
    return $this;
};
