Torres156_Lun-Library/Lun/SFML/Graphics/Glyph.cs
using System.Runtime.InteropServices;

namespace Lun.SFML.Graphics
{
    ////////////////////////////////////////////////////////////
    /// <summary>
    /// Structure describing a glyph (a visual character)
    /// </summary>
    ////////////////////////////////////////////////////////////
    [StructLayout(LayoutKind.Sequential)]
    public struct Glyph
    {
        /// <summary>Offset to move horizontally to the next character</summary>
        public float Advance;

        /// <summary>Bounding rectangle of the glyph, in coordinates relative to the baseline</summary>
        public FloatRect Bounds;

        /// <summary>Texture coordinates of the glyph inside the font's texture</summary>
        public IntRect TextureRect;
    }
}
