Exemplo n.º 1
0
        public void SetVertices(Array vertices)
        {
            int errorCode = PsmVertexBuffer.SetVertices(this.handle, vertices, 0, 0, -1);

            if (errorCode != 0)
            {
                Error.ThrowNativeException(errorCode);
            }
        }
Exemplo n.º 2
0
        public void SetVertices(Array vertices, int to, int from, int count)
        {
            if (count < 0)
            {
                count = int.MaxValue;
            }
            int errorCode = PsmVertexBuffer.SetVertices(this.handle, vertices, to, from, count);

            if (errorCode != 0)
            {
                Error.ThrowNativeException(errorCode);
            }
        }