using System.Diagnostics; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace BouncyCatIsBouncy.Debugging { static class DrawVector { static LineBrush s_brush = new LineBrush(1, Color.White); static bool loaded; [Conditional("DEBUG")] static public void Draw(SpriteBatch batch, Vector2 start, Vector2 end, Color color) { if (!loaded) { s_brush.Load(batch.GraphicsDevice); loaded = true; } s_brush.Color = color; s_brush.Draw(batch, start, end); } } }