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(); }
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(); }
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(); }
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(); }