public static void DrawRect(this SpriteBatch batch, Rectangle bounds, Color color) { if (_solidColorTexture == null) { _solidColorTexture = batch.CreateSolidTexture(); } batch.Draw(_solidColorTexture, bounds, color); }