public static void DrawLine(float x1, float y1, float x2, float y2, Color c) { if (Event.current.type == EventType.Repaint) { HandleUtility.ApplyWireMaterial(); GL.Begin(1); GL.Color(new Color(c.r, c.g, c.b, c.a * GetAlpha())); Vertex(x1, y1); Vertex(x2, y2); GL.End(); } }