2012-08-17 14:25:59 +00:00
|
|
|
|
using System;
|
2012-08-16 14:18:21 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
|
|
|
|
|
// This file is part of the ANX.Framework created by the
|
|
|
|
|
// "ANX.Framework developer group" and released under the Ms-PL license.
|
|
|
|
|
// For details see: http://anxframework.codeplex.com/license
|
|
|
|
|
|
|
|
|
|
namespace ANX.Framework.Content.Pipeline.Graphics
|
|
|
|
|
{
|
2012-08-17 14:25:59 +00:00
|
|
|
|
public sealed class IndexCollection : Collection<int>
|
|
|
|
|
{
|
|
|
|
|
public IndexCollection()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void AddRange(IEnumerable<int> indices)
|
|
|
|
|
{
|
|
|
|
|
if (indices == null)
|
|
|
|
|
{
|
|
|
|
|
throw new ArgumentNullException("indices");
|
|
|
|
|
}
|
2012-08-16 14:18:21 +00:00
|
|
|
|
|
2012-08-17 14:25:59 +00:00
|
|
|
|
foreach (int index in indices)
|
|
|
|
|
{
|
|
|
|
|
Items.Add(index);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2012-08-16 14:18:21 +00:00
|
|
|
|
}
|