Due to unforseen naming conflicts, the project has been rebranded under the ReFuel umbrealla and will now be referred to as Dashboard from now on. Other changes will occur to suit the library more for the engine whilst keeping the freestanding nature of the library. Rename folder. Rename to Dashboard.OpenTK Rename to Dashboard.Media.Defaults. Do the last renames and path fixes.
47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
namespace Dashboard.Media
|
|
{
|
|
/// <summary>
|
|
/// Glyph properties with metrics based on FreeType glyph metrics.
|
|
/// </summary>
|
|
public struct QGlyphMetrics
|
|
{
|
|
/// <summary>
|
|
/// The code point for the character.
|
|
/// </summary>
|
|
public int Rune { get; }
|
|
|
|
/// <summary>
|
|
/// Size of the glyph in units.
|
|
/// </summary>
|
|
public QVec2 Size { get; }
|
|
|
|
/// <summary>
|
|
/// Bearing vector for horizontal layout.
|
|
/// </summary>
|
|
public QVec2 HorizontalBearing { get; }
|
|
|
|
/// <summary>
|
|
/// Bearing vector for vertical layout.
|
|
/// </summary>
|
|
public QVec2 VerticalBearing { get; }
|
|
|
|
/// <summary>
|
|
/// Advance vector for vertical and horizontal layouts.
|
|
/// </summary>
|
|
public QVec2 Advance { get; }
|
|
|
|
public QGlyphMetrics(
|
|
int character,
|
|
QVec2 size,
|
|
QVec2 horizontalBearing,
|
|
QVec2 verticalBearing,
|
|
QVec2 advance)
|
|
{
|
|
Rune = character;
|
|
Size = size;
|
|
HorizontalBearing = horizontalBearing;
|
|
VerticalBearing = verticalBearing;
|
|
Advance = advance;
|
|
}
|
|
}
|
|
} |