create the vertex buffer in cpp