Exemple #1
0
      /// <summary>
      /// Overrides Figure.Show()
      /// Draws a line using openTK and openGL with the attributes specified.
      /// </summary>
      public override void Show() 
      {
         TLine line = new TLine();

         GL.LineWidth(lineWidth);
         GL.Begin(PrimitiveType.LineStrip);
            GL.Color3(FGColor);
            GL.Vertex2(pts[0].X, pts[0].Y);
            GL.Vertex2(pts[1].X, pts[1].Y);
         GL.End();
      }
Exemple #2
0
      public override void Show() 
      {
         TLine line = new TLine();

         GL.Begin(PrimitiveType.Lines);
         GL.LineWidth(lineWidth);
         GL.Color3(FGColor);
         
         //TODO: fix points
         GL.Vertex2(pts[0].X, pts[0].Y);
         GL.Vertex2(pts[pts.Count - 1].X, pts[pts.Count - 1].Y);
         GL.End();
      }