public Microsoft.Xna.Framework.Graphics.VertexElement[] ConvertFrom(VertexFormat format)
		{
			var xnaElements = new Microsoft.Xna.Framework.Graphics.VertexElement[format.Elements.Length];
			usageCounts = new Dictionary<VertexElementUsage, int>();
			for (int i = 0; i < xnaElements.Length; i++)
				xnaElements[i] = ConvertToXnaElement(format.Elements[i]);
			return xnaElements;
		}
示例#2
0
        public Microsoft.Xna.Framework.Graphics.VertexElement[] ConvertFrom(VertexFormat format)
        {
            var xnaElements = new Microsoft.Xna.Framework.Graphics.VertexElement[format.Elements.Length];

            usageCounts = new Dictionary <VertexElementUsage, int>();
            for (int i = 0; i < xnaElements.Length; i++)
            {
                xnaElements[i] = ConvertToXnaElement(format.Elements[i]);
            }
            return(xnaElements);
        }