"Improved" TextRenderer (︶^︶)
This commit is contained in:
parent
f7dc2e24dc
commit
ff85180750
8 changed files with 247 additions and 126 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue