demo.js
function(gl, vertices, uv) {
  var verticesBuf = createBuffer(gl, new Float32Array(vertices))
  var uvBuf = createBuffer(gl, new Float32Array(uv))

  var mesh = createVAO(gl, [
      { buffer: verticesBuf,
        size: 3
      },
      {
        buffer: uvBuf,
        size: 2
      }
      ])
  mesh.length = vertices.length/3

  return mesh
}
function(gl, vertices, uv) {
  var verticesBuf = createBuffer(gl, new Float32Array(vertices))
  var uvBuf = createBuffer(gl, new Float32Array(uv))

  var mesh = createVAO(gl, [
      { buffer: verticesBuf,
        size: 3
      },
      {
        buffer: uvBuf,
        size: 2
      }
      ])
  mesh.length = vertices.length/3

  return mesh
}
function ( gl , vertices , uv ) { var verticesBuf = createBuffer ( gl , new Float32Array ( vertices ) ) var uvBuf = createBuffer ( gl , new Float32Array ( uv ) ) var mesh = createVAO ( gl , [ { buffer : verticesBuf , size : 3 } , { buffer : uvBuf , size : 2 } ] ) mesh . length = vertices . length / 3 return mesh }
create a mesh ready for rendering
create a mesh ready for rendering