GizmoDrawSettings.generated.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //************** Copyright (c) 2016-2019 Marko Pintera ([email protected]). All rights reserved. *******************//
  3. using System;
  4. using System.Runtime.CompilerServices;
  5. using System.Runtime.InteropServices;
  6. using bs;
  7. namespace bs.Editor
  8. {
  9. /// <summary>Settings that control gizmo drawing.</summary>
  10. [StructLayout(LayoutKind.Sequential), SerializeObject]
  11. public partial struct GizmoDrawSettings
  12. {
  13. /// <summary>Initializes the struct with default values.</summary>
  14. public static GizmoDrawSettings Default()
  15. {
  16. GizmoDrawSettings value = new GizmoDrawSettings();
  17. value.iconScale = 1f;
  18. value.iconRange = 500f;
  19. value.iconSizeMin = 0.0500000007f;
  20. value.iconSizeMax = 0.150000006f;
  21. value.iconSizeCull = 0.25f;
  22. return value;
  23. }
  24. /// <summary>Scale to apply to gizmo icons, controlling their size.</summary>
  25. public float iconScale;
  26. /// <summary>Maximum range at which gizmo icons will be rendered, in world units.</summary>
  27. public float iconRange;
  28. /// <summary>
  29. /// Icons smaller than this size will be faded out. The value represents the size of the icon relative to viewport size
  30. /// (e.g. 1 means the icons fully covers the viewport). In range [0, 1], should be smaller than maximum size value.
  31. /// </summary>
  32. public float iconSizeMin;
  33. /// <summary>
  34. /// Icons larger than this size will be faded out. The value represents the size of the icon relative to viewport size
  35. /// (e.g. 1 means the icons fully covers the viewport). In range [0, 1], should be larger than minimum size value.
  36. /// </summary>
  37. public float iconSizeMax;
  38. /// <summary>
  39. /// Icons larger than this size will not be shown. The value represents the size of the icon relative to viewport size
  40. /// (e.g. 1 means the icons fully covers the viewport). In range [0, 1], should be larger than maximum size value.
  41. /// </summary>
  42. public float iconSizeCull;
  43. }
  44. }