"Improved" TextRenderer (︶^︶)

This commit is contained in:
Michel Fedde 2021-04-01 18:24:46 +02:00
parent f7dc2e24dc
commit ff85180750
8 changed files with 247 additions and 126 deletions

View file

@ -1,6 +1,7 @@
#region usings
using System;
using OpenTK;
#endregion
@ -13,23 +14,18 @@ namespace SM.Base.Drawing.Text
public struct CharParameter
{
/// <summary>
/// The position on the X-axis.
/// The advance on the X-axis.
/// </summary>
public int X;
public int Advance;
public float BearingX;
/// <summary>
/// The width of the character.
/// </summary>
public float Width;
/// <summary>
/// The normalized position inside the texture.
/// </summary>
public float NormalizedX;
/// <summary>
/// The normalized width inside the texture.
/// </summary>
public float NormalizedWidth;
public Matrix3 TextureMatrix;
}
}