public static void DrawLine(SuperBatch sb, Vector2 start, Vector2 end, Color color, int thickness = 1) { float length = Vector2.Distance(start, end); float rotation = CoreFunctions.ComputeAngle(start, end); Rectangle sourceRect = new Rectangle(0, 0, (int)length, 1); sb.Draw(pixel, start, sourceRect, color, rotation); }
public static void FillBounds(SuperBatch sb, Bounds bounds, Color color) { sb.Draw(pixel, bounds.ToRectangle(), color); }
public static void DrawPoint(SuperBatch sb, Vector2 point, Color color) { sb.Draw(pixel, point, color); }