Example #1
0
 /// <summary>
 /// Draws the rect with styled lines.
 /// </summary>
 /// <param name="x">The x of left top rect coord.</param>
 /// <param name="y">The y of left top rect coord.</param>
 /// <param name="width">The rect width.</param>
 /// <param name="height">The rect height.</param>
 /// <param name="style">The style to use for shading lines.</param>
 /// <param name="colorTint">The color tint.</param>
 public void DrawRect(float x, float y, float width, float height, LineStyle style, Color colorTint)
 {
     DrawRect(Rect.FromBox(x, y, width, height), style, colorTint);
 }
Example #2
0
 /// <summary>
 /// Draws the rect with styled lines.
 /// </summary>
 /// <param name="rect">The rectangle.</param>
 /// <param name="style">The style to use for shading lines.</param>
 /// <param name="colorTint">The color tint.</param>
 public void DrawRect(Rect rect, LineStyle style, Color colorTint)
 {
     DrawLine(rect.LeftTop, rect.RightTop, style, colorTint);
     DrawLine(rect.RightTop, rect.RightBottom, style, colorTint);
     DrawLine(rect.RightBottom, rect.LeftBottom, style, colorTint);
     DrawLine(rect.LeftBottom, rect.LeftTop, style, colorTint);
 }
Example #3
0
 public void DrawLine(Vector2 start, Vector2 end, LineStyle style, Color colorTint)
 {
     DrawLine(Batch, style.Stroke.PatternProvider, style.Width, colorTint, start, end);
 }