Remove draw line 2D helper method.

Callers can provide 3D points easily, and this avoids the need to allocate and slow down enumeration via the points.Select(p => new float3(p, 0)) wrapper.
This commit is contained in:
RoosterDragon
2017-12-15 19:22:20 +00:00
committed by reaperrr
parent de38313579
commit a9d1d374b8
4 changed files with 7 additions and 12 deletions

View File

@@ -204,11 +204,6 @@ namespace OpenRA.Graphics
}
}
public void DrawLine(IEnumerable<float2> points, float width, Color color, bool connectSegments = false)
{
DrawLine(points.Select(p => new float3(p, 0)), width, color, connectSegments);
}
public void DrawLine(IEnumerable<float3> points, float width, Color color, bool connectSegments = false)
{
if (!connectSegments)