コード例 #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);
        }
コード例 #2
0
ファイル: ShapeRenderer.cs プロジェクト: nilllzz/Pokemon3D
        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);
        }