IDrawer.cs 735 B

123456789101112131415161718
  1. using UnityEngine;
  2. namespace UnityEditor.Experimental.Rendering.Universal.Path2D
  3. {
  4. internal interface IDrawer
  5. {
  6. void DrawSelectionRect(Rect rect);
  7. void DrawCreatePointPreview(Vector3 position);
  8. void DrawRemovePointPreview(Vector3 position);
  9. void DrawPoint(Vector3 position);
  10. void DrawPointHovered(Vector3 position);
  11. void DrawPointSelected(Vector3 position);
  12. void DrawLine(Vector3 p1, Vector3 p2, float width, Color color);
  13. void DrawDottedLine(Vector3 p1, Vector3 p2, float width, Color color);
  14. void DrawBezier(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4, float width, Color color);
  15. void DrawTangent(Vector3 position, Vector3 tangent);
  16. }
  17. }