/* AngelCode bitmap font parsing using C#
* http://www.cyotek.com/blog/angelcode-bitmap-font-parsing-using-csharp
*
* Copyright © 2012-2015 Cyotek Ltd.
*
* Licensed under the MIT License. See license.txt for the full text.
*/
#if !XENKO
using Microsoft.Xna.Framework;
#else
using Xenko.Core.Mathematics;
#endif
namespace Cyotek.Drawing.BitmapFont
{
///
/// Represents the definition of a single character in a
///
internal struct Character
{
#region Properties
///
/// Gets or sets the bounds of the character image in the source texture.
///
///
/// The bounds of the character image in the source texture.
///
public Rectangle Bounds { get; set; }
///
/// Gets or sets the texture channel where the character image is found.
///
///
/// The texture channel where the character image is found.
///
///
/// 1 = blue, 2 = green, 4 = red, 8 = alpha, 15 = all channels
///
public int Channel { get; set; }
///
/// Gets or sets the character.
///
///
/// The character.
///
public char Char { get; set; }
///
/// Gets or sets the offset when copying the image from the texture to the screen.
///
///
/// The offset when copying the image from the texture to the screen.
///
public Point Offset { get; set; }
///
/// Gets or sets the texture page where the character image is found.
///
///
/// The texture page where the character image is found.
///
public int TexturePage { get; set; }
///
/// Gets or sets the value used to advance the current position after drawing the character.
///
///
/// How much the current position should be advanced after drawing the character.
///
public int XAdvance { get; set; }
#endregion
#region Methods
///
/// Returns the fully qualified type name of this instance.
///
///
/// A containing a fully qualified type name.
///
///
public override string ToString()
{
return Char.ToString();
}
#endregion
}
}