Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }