/ContentSystem/Rendering/Helpers/GlyphDrawInfo.cs
C# | 41 lines | 16 code | 3 blank | 22 comment | 0 complexity | 935e710046ae56238eb66325bf430090 MD5 | raw file
Possible License(s): Apache-2.0
- using Delta.Utilities.Datatypes;
-
- namespace Delta.ContentSystem.Rendering.Helpers
- {
- /// <summary>
- /// Glyph draw info helper struct, which is used by FontData, but only
- /// really needed in Delta.Rendering.Basics.Fonts.
- /// </summary>
- public struct GlyphDrawInfo
- {
- #region DrawArea (Public)
- /// <summary>
- /// That represents the area where the glyph (or in other words the
- /// character) will be drawn on the screen.
- /// <para/>
- /// Note: The area will be created in pixel space from the 'FontData' on
- /// the content side and will give it to the 'Font' class on the rendering
- /// side. There will the value be transformed in the quadratic space (which
- /// is the used space in the DeltaEngine for rendering) and reused for
- /// drawing calls of the 'Font' class.
- /// </summary>
- public Rectangle DrawArea;
- #endregion
-
- #region FontMapId (Public)
- /// <summary>
- /// The ID of the font map that belongs to the font where that draw info is
- /// thought for.
- /// </summary>
- public int FontMapId;
- #endregion
-
- #region UV (Public)
- /// <summary>
- /// The final (normalized) UV coordinates for the font map related to the
- /// set 'FontMapId'.
- /// </summary>
- public Rectangle UV;
- #endregion
- }
- }