OpenRA.Graphics.RgbaColorRenderer.DrawRect C# (CSharp) Method

DrawRect() public method

public DrawRect ( float3 tl, float3 br, float width, Color color ) : void
tl float3
br float3
width float
color Color
return void
        public void DrawRect(float3 tl, float3 br, float width, Color color)
        {
            var tr = new float3(br.X, tl.Y, tl.Z);
            var bl = new float3(tl.X, br.Y, br.Z);
            DrawPolygon(new[] { tl, tr, br, bl }, width, color);
        }