Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ DrawRectangle()

static void Terraria.Utils.DrawRectangle ( SpriteBatch sb,
Vector2 start,
Vector2 end,
Color colorStart,
Color colorEnd,
float width )
inlinestatic

Definition at line 2002 of file Utils.cs.

2003 {
2004 DrawLine(sb, start, new Vector2(start.X, end.Y), colorStart, colorEnd, width);
2005 DrawLine(sb, start, new Vector2(end.X, start.Y), colorStart, colorEnd, width);
2006 DrawLine(sb, end, new Vector2(start.X, end.Y), colorStart, colorEnd, width);
2007 DrawLine(sb, end, new Vector2(end.X, start.Y), colorStart, colorEnd, width);
2008 }
static void DrawLine(SpriteBatch spriteBatch, Point start, Point end, Color color)
Definition Utils.cs:2044

References Terraria.Utils.DrawLine(), System.start, Microsoft.Xna.Framework.Graphics.Vector2, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.

Referenced by Terraria.Main.DrawWires().