PageRenderTime 263ms CodeModel.GetById 259ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/ContentSystem/Rendering/Helpers/GlyphDrawInfo.cs

#
C# | 41 lines | 16 code | 3 blank | 22 comment | 0 complexity | 935e710046ae56238eb66325bf430090 MD5 | raw file
 1using Delta.Utilities.Datatypes;
 2
 3namespace Delta.ContentSystem.Rendering.Helpers
 4{
 5	/// <summary>
 6	/// Glyph draw info helper struct, which is used by FontData, but only
 7	/// really needed in Delta.Rendering.Basics.Fonts.
 8	/// </summary>
 9	public struct GlyphDrawInfo
10	{
11		#region DrawArea (Public)
12		/// <summary>
13		/// That represents the area where the glyph (or in other words the
14		/// character) will be drawn on the screen.
15		/// <para/>
16		/// Note: The area will be created in pixel space from the 'FontData' on
17		/// the content side and will give it to the 'Font' class on the rendering
18		/// side. There will the value be transformed in the quadratic space (which
19		/// is the used space in the DeltaEngine for rendering) and reused for
20		/// drawing calls of the 'Font' class.
21		/// </summary>
22		public Rectangle DrawArea;
23		#endregion
24
25		#region FontMapId (Public)
26		/// <summary>
27		/// The ID of the font map that belongs to the font where that draw info is
28		/// thought for.
29		/// </summary>
30		public int FontMapId;
31		#endregion
32
33		#region UV (Public)
34		/// <summary>
35		/// The final (normalized) UV coordinates for the font map related to the
36		/// set 'FontMapId'.
37		/// </summary>
38		public Rectangle UV;
39		#endregion
40	}
41}