// MonoGame - Copyright (C) The MonoGame Team
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
using System.Collections.ObjectModel;
namespace Microsoft.Xna.Framework.Content.Pipeline.Graphics
{
///
/// Provides methods for accessing a mipmap chain.
///
public sealed class MipmapChain : Collection
{
///
/// Initializes a new instance of MipmapChain.
///
public MipmapChain()
{
}
///
/// Initializes a new instance of MipmapChain with the specified mipmap.
///
///
public MipmapChain(BitmapContent bitmap)
{
Add(bitmap);
}
///
/// Constructs a new mipmap chain containing the specified bitmap.
///
/// Bitmap used for the mipmap chain.
/// Resultant mipmap chain.
public static implicit operator MipmapChain(BitmapContent bitmap)
{
return new MipmapChain(bitmap);
}
}
}