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

◆ DrawRect() [2/3]

static void Terraria.Utils.DrawRect ( SpriteBatch spriteBatch,
Vector2 start,
Vector2 end,
Color color )
inlinestatic

Definition at line 2095 of file Utils.cs.

2096 {
2097 DrawLine(spriteBatch, start, new Vector2(start.X, end.Y), color);
2098 DrawLine(spriteBatch, start, new Vector2(end.X, start.Y), color);
2099 DrawLine(spriteBatch, end, new Vector2(start.X, end.Y), color);
2100 DrawLine(spriteBatch, end, new Vector2(end.X, start.Y), color);
2101 }
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.