Ejemplo n.º 1
0
 private void DrawWall()
 {
     Renderer_2D.Begin(Camera2D.GetTransform());
     for (int i = 0; i < mapPointsList[eObjectType.Wall].Count; i += 2)
     {
         Renderer_2D.DrawLine(
             mapPointsList[eObjectType.Wall][i].Position,
             mapPointsList[eObjectType.Wall][i + 1].Position,
             Color.LightGreen
             );
     }
     Renderer_2D.End();
 }
Ejemplo n.º 2
0
        public override void Draw()
        {
            Renderer_2D.Begin(Camera2D.GetTransform());

            for (int i = 0; i < linePoint.Count - 1; i++)
            {
                Renderer_2D.DrawLine(
                    linePoint[i],
                    linePoint[i + 1],
                    Color.Yellow
                    );
            }

            Renderer_2D.End();
        }
Ejemplo n.º 3
0
 private void DrawBezierLine()
 {
     Renderer_2D.Begin(Camera2D.GetTransform());
     for (int i = 0; i < bezierPositions.Count; i++)
     {
         for (int j = 0; j < bezierPositions[i].Count - 1; j++)
         {
             Renderer_2D.DrawLine(
                 bezierPositions[i][j],
                 bezierPositions[i][j + 1],
                 Color.Yellow
                 );
         }
     }
     Renderer_2D.End();
 }
Ejemplo n.º 4
0
        public override void Draw()
        {
            if (!Parameter.IsDebug)
            {
                return;
            }

            Renderer_2D.Begin(Camera2D.GetTransform());

            for (int i = 0; i < bezierPoints.Count; i++)
            {
                for (int j = 0; j < bezierPoints[i].Count - 1; j++)
                {
                    Renderer_2D.DrawLine(
                        bezierPoints[i][j],
                        bezierPoints[i][j + 1],
                        Color.Yellow
                        );
                }
            }

            Renderer_2D.End();
        }