Example #1
0
 public static void DrawLine(Vector3 p1, Vector3 p2)
 {
     if (!LightLine.BeginLineDrawing(Matrix4x4.get_identity()))
     {
         return;
     }
     GL.Vertex(p1);
     GL.Vertex(p2);
     LightLine.EndLineDrawing();
 }
Example #2
0
 public static void DrawPolyLine(params Vector3[] _points)
 {
     if (!LightLine.BeginLineDrawing(Matrix4x4.get_identity()))
     {
         return;
     }
     for (int index = 1; index < _points.Length; ++index)
     {
         GL.Vertex(_points[index]);
         GL.Vertex(_points[index - 1]);
     }
     LightLine.EndLineDrawing();
 }