+ Windows now have a default icon ~ Changed CVector.Set(params float[]) to CVector.SetRaw(params float[]) ~ I hope, the text rendering is now fixed. ~ Mouse2D.InWorld(Camera) now uses Camera.CalculatedWorldScale.
34 lines
No EOL
617 B
C#
34 lines
No EOL
617 B
C#
#region usings
|
|
|
|
using System;
|
|
using OpenTK;
|
|
|
|
#endregion
|
|
|
|
namespace SM.Base.Drawing.Text
|
|
{
|
|
/// <summary>
|
|
/// Contains information for a font character.
|
|
/// </summary>
|
|
[Serializable]
|
|
public struct CharParameter
|
|
{
|
|
/// <summary>
|
|
/// The advance on the X-axis.
|
|
/// </summary>
|
|
public int Advance;
|
|
|
|
public float BearingX;
|
|
|
|
/// <summary>
|
|
/// The width of the character.
|
|
/// </summary>
|
|
public float Width;
|
|
|
|
|
|
public Matrix3 TextureMatrix;
|
|
|
|
public Vector2 Offset;
|
|
public Vector2 Scale;
|
|
}
|
|
} |