Beispiel #1
0
 protected override void Render(Renderer renderer, Time time)
 {
     renderer.DrawLine(DrawArea.TopLeft, DrawArea.TopRight, Color);
     renderer.DrawLine(DrawArea.TopRight, DrawArea.BottomRight, Color);
     renderer.DrawLine(DrawArea.BottomRight, DrawArea.BottomLeft, Color);
     renderer.DrawLine(DrawArea.BottomLeft, DrawArea.TopLeft, Color);
 }
        protected override void Render(Renderer renderer, Time time)
        {
            if (areEllipsePointsOutOfDate)
                StoreEllipsePoints();

            for (int i = 1; i < ellipsePoints.Length; i++)
                renderer.DrawLine(Center + ellipsePoints[i - 1], Center + ellipsePoints[i], Color);
        }
Beispiel #3
0
        protected override void Render(Renderer renderer, Time time)
        {
            if (areCachedLinesOutOfDate)
                CacheLines();

            foreach (Line2D line in lines)
                renderer.DrawLine(TopLeft + line.StartPosition, TopLeft + line.EndPosition, Color);
        }
Beispiel #4
0
 protected override void Render(Renderer renderer, Time time)
 {
     renderer.DrawLine(StartPosition, EndPosition, Color);
 }