public static void DrawRectangle(this SpriteBatch batch, Rectangle rectangle, Color color) { ShapeRenderer.Get(batch.GraphicsDevice).DrawRectangle(batch, rectangle, color); }
internal static ShapeRenderer Get(GraphicsDevice device) => _instance ?? (_instance = new ShapeRenderer(device));