Exemplo n.º 1
0
        public override void Draw(DrawBatch drawBatch)
        {
            drawBatch.DrawBezier(_bluePen, new CCVector2(50, 100), new CCVector2(50, 50), new CCVector2(150, 50), new CCVector2(150, 100));
            drawBatch.DrawBezier(_bluePen, new CCVector2(50, 250), new CCVector2(50, 150), new CCVector2(150, 150), new CCVector2(150, 250));

            drawBatch.DrawBeziers(_bluePen, _wavePoints, BezierType.Cubic);
            drawBatch.DrawPrimitivePath(Pen.Gray, _wavePoints);

            for (int i = 0; i < _wavePoints.Length; i++)
                drawBatch.DrawPoint(_pointPen, _wavePoints[i]);

            drawBatch.DrawBeziers(_bluePen, _loopPoints, BezierType.Cubic, PathType.Closed);
            drawBatch.DrawPrimitivePath(Pen.Gray, _loopPoints, PathType.Closed);

            for (int i = 0; i < _loopPoints.Length; i++)
                drawBatch.DrawPoint(_pointPen, _loopPoints[i]);
        }