Example #1
0
 public static void DrawRect(SpriteBatch spriteBatch, Point start, Point end, Color color)
 {
     Utils.DrawRect(spriteBatch, new Vector2((float)(start.X << 4), (float)(start.Y << 4)), new Vector2((float)((end.X << 4) - 4), (float)((end.Y << 4) - 4)), color);
 }
Example #2
0
 public static void DrawRect(SpriteBatch spriteBatch, Rectangle rect, Color color)
 {
     Utils.DrawRect(spriteBatch, new Point(rect.X, rect.Y), new Point(rect.X + rect.Width, rect.Y + rect.Height), color);
 }