public void DrawShape(Shape shape, Rectangle?destinationRectangle, Color color, float rotation = 0f, Vector2?origin = null, SpriteEffects effects = SpriteEffects.None) { if (_singleColorTextureProvider == null) { _singleColorTextureProvider = new SingleColorShapeTextureProvider(this); } DrawShape(new ShapeFillData(shape, _singleColorTextureProvider, null), destinationRectangle, color, rotation, origin, effects); }
public void DrawShape(Shape shape, Rectangle? destinationRectangle, Color color, float rotation = 0f, Vector2? origin = null, SpriteEffects effects = SpriteEffects.None) { if (_singleColorTextureProvider == null) _singleColorTextureProvider = new SingleColorShapeTextureProvider(this); DrawShape(new ShapeFillData(shape, _singleColorTextureProvider, null), destinationRectangle, color, rotation, origin, effects); }