public void AddData(VertexPositionColor[] VertexList, short[] IndexList) { int _count = this.VertexList.Count; this.VertexList.AddRange(VertexList.ToList<VertexPositionColor>()); foreach (short index in IndexList) { this.IndexList.Add((short)(index + _count)); } }
public LineData(VertexPositionColor[] VertexList, short[] IndexList) { this.VertexList = VertexList.ToList<VertexPositionColor>(); this.IndexList = IndexList.ToList<short>(); }