setupVBO method
void
setupVBO()
Implementation
void setupVBO() {
double w = 1.0;
double h = 1.0;
Float32List vertices = Float32List.fromList([
-w,-h,0,0,1,
w,-h,0,1,1,
-w,h,0,0,0,
w,h,0,1,0
]);
vertexBuffer = _gl.createBuffer();
_gl.bindBuffer(WebGL.ARRAY_BUFFER, vertexBuffer);
_gl.bufferData(WebGL.ARRAY_BUFFER, vertices, WebGL.STATIC_DRAW);
//vertices.dispose();
}