Glatzemann 4c4b999b9c - default ContentProcessor for ContentImporter now working
- some improvements in TextureImporter
- some improvements in SpriteTextureProcessor

Missing for basic texture handling: Texture2DContentWriter
2015-03-15 01:11:12 +01:00

53 lines
1.7 KiB
C#

#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using ANX.Framework.Content.Pipeline.Graphics;
#endregion
// 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.Processors
{
[ContentProcessor]
public class SpriteTextureProcessor : TextureProcessor
{
public override Color ColorKeyColor { get; set; }
public override bool ColorKeyEnabled { get; set; }
public override bool GenerateMipmaps { get; set; }
[Browsable(false)]
public override bool ResizeToPowerOfTwo { get; set; }
public override TextureProcessorOutputFormat TextureFormat { get; set; }
public override TextureContent Process(TextureContent input, ContentProcessorContext context)
{
if (ColorKeyEnabled)
{
throw new NotImplementedException("ColorKey not yet implemented");
}
if (GenerateMipmaps)
{
throw new NotImplementedException("Generation of MipMaps not yet implemented");
}
if (ResizeToPowerOfTwo)
{
throw new NotImplementedException("Resizing to power of two not yet implemented");
}
if (TextureFormat == TextureProcessorOutputFormat.DxtCompressed)
{
throw new NotImplementedException("DXT compression of textures not yet implemented");
}
return input;
}
}
}