-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathUvGlyphData.cs
More file actions
32 lines (28 loc) · 959 Bytes
/
UvGlyphData.cs
File metadata and controls
32 lines (28 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
namespace OpenWheels.Fonts
{
/// <summary>
/// Data for a glyph with bounds in UV coordinates.
/// </summary>
public struct UvGlyphData
{
/// <summary>
/// UTF-32 encoded character of the glyph.
/// </summary>
public int Character { get; }
/// <summary>
/// Bounds of the glyph on the texture atlas in UV coordinates.
/// </summary>
public RectangleF Bounds { get; }
/// <summary>
/// Create a new <see cref="GlyphData"/> instance.
/// </summary>
/// <param name="character">UTF-32 encoded character of the glyph</param>
/// <param name="bounds">Bounds of the glyph on the texture atlas in UV coordinates.</param>
public UvGlyphData(int character, RectangleF bounds)
{
Character = character;
Bounds = bounds;
}
internal static UvGlyphData Default = new UvGlyphData();
}
}