Beispiel #1
0
        public void AppendIndices(params short[] indices)
        {
            if (indices.Length == 0)
            {
                return;
            }

            _Indices.AddRange(indices);
            _Dummy.IndexCount += indices.Length;
            _Synchronised      = false;
        }
Beispiel #2
0
        public void AppendVertices(params Vertex[] vertices)
        {
            if (vertices.Length == 0)
            {
                return;
            }

            _Vertices.AddRange(vertices.Select(x => x));
            _Dummy.VertexCount += vertices.Length;
            _Synchronised       = false;
        }