PageRenderTime 77ms CodeModel.GetById 23ms RepoModel.GetById 2ms app.codeStats 0ms

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