Replaced the old VS templates with ones that offer more flexiblity. Started replacing the Content Project for the samples with our custom project type. Inlcuded a basic not yet working AssimpImporter.
59 lines
1.5 KiB
C#
59 lines
1.5 KiB
C#
#region Using Statements
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using ANX.Framework.Content.Pipeline.Graphics;
|
|
using System.ComponentModel;
|
|
|
|
#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 FontTextureProcessor : ContentProcessor<Texture2DContent, SpriteFontContent>
|
|
{
|
|
[DefaultValue(' ')]
|
|
public virtual char FirstCharacter
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[DefaultValue(true)]
|
|
public virtual bool PremultiplyAlpha
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[DefaultValue(TextureProcessorOutputFormat.Color)]
|
|
public virtual TextureProcessorOutputFormat TextureFormat
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public FontTextureProcessor()
|
|
{
|
|
FirstCharacter = ' ';
|
|
PremultiplyAlpha = true;
|
|
TextureFormat = TextureProcessorOutputFormat.Color;
|
|
}
|
|
|
|
public override SpriteFontContent Process(Texture2DContent input, ContentProcessorContext context)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
protected virtual char GetCharacterForIndex(int index)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|