Vertex and index data now passed as a vector