/// <summary> /// Upload the geometry to the given vertex buffer and index buffer /// </summary> /// <param name="vbo">The vertex buffer used for rendering</param> /// <param name="ibo">The index buffer used for rendering</param> public void Upload(VertexBuffer <TVertex> vbo, IndexBuffer ibo) { vbo.Upload(mesh.vertices); if (indices != null && ibo != null) { ibo.Upload((indices as Indices).IndexArray); } NeedsUpdate = false; }
public void Upload(IndexBuffer ibo) { ibo.Upload(indices); }