// 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;
using Microsoft.Xna.Framework.Graphics;
using System.Drawing;
namespace Microsoft.Xna.Framework.Content.Pipeline.Graphics
{
///
/// Provides a base class for all texture objects.
///
public abstract class SpriteFontDescriptionContent : ContentItem, IDisposable
{
MipmapChainCollection faces;
internal Bitmap _bitmap;
///
/// Collection of image faces that hold a single mipmap chain for a regular 2D texture, six chains for a cube map, or an arbitrary number for volume and array textures.
///
public MipmapChainCollection Faces
{
get
{
return faces;
}
}
///
/// Initializes a new instance of TextureContent with the specified face collection.
///
/// Mipmap chain containing the face collection.
protected TextureContent(MipmapChainCollection faces)
{
this.faces = faces;
}
///
/// Converts all bitmaps for this texture to a different format.
///
/// Type being converted to. The new type must be a subclass of BitmapContent, such as PixelBitmapContent or DxtBitmapContent.
public void ConvertBitmapType(Type newBitmapType)
{
throw new NotImplementedException();
}
///
/// Generates a full set of mipmaps for the texture.
///
/// true if the existing mipmap set is replaced with the new set; false otherwise.
public virtual void GenerateMipmaps(bool overwriteExistingMipmaps)
{
throw new NotImplementedException();
}
///
/// Verifies that all contents of this texture are present, correct and match the capabilities of the device.
///
/// The profile identifier that defines the capabilities of the device.
public abstract void Validate(Nullable targetProfile);
public virtual void Dispose()
{
if (_bitmap != null)
{
_bitmap.Dispose();
_bitmap = null;
}
}
}
}