Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public static void FillBounds(SuperBatch sb, Bounds bounds, Color color)
 {
     sb.Draw(pixel, bounds.ToRectangle(), color);
 }
Exemplo n.º 3
0
 public static void DrawPoint(SuperBatch sb, Vector2 point, Color color)
 {
     sb.Draw(pixel, point, color);
 }