public void setVertexBuffer ( GVRVertexBuffer vbuf ) { if ( vbuf == null ) { throw new IllegalArgumentException ( "Vertex buffer cannot be null" ) ; } mVertices = vbuf ; NativeMesh . setVertexBuffer ( getNative ( ) , vbuf . getNative ( ) ) ; }
Changes the vertex buffer associated with this mesh .