Example #1
0
        public void Draw(GraphicsDevice graphicsDevice, SpriteBatch batch, PrimitiveDrawer drawer, FontHandler font)
        {
            if(showMode && !neverEditAgain)
            {
                drawer.DrawRoundedRectangle(graphicsDevice, a.ScalePosition(start), Color.White);
                drawer.DrawRoundedRectangle(graphicsDevice, b.ScalePosition(start), Color.Red);
                drawer.DrawRoundedRectangle(graphicsDevice, c.ScalePosition(start), Color.Blue);
            }

            drawer.DrawCurve(graphicsDevice, start, a.ScalePosition(start).GetVector(), b.ScalePosition(start).GetVector(), c.ScalePosition(start).GetVector(), 1, 0, Color.Black);
        }