public static void DrawLine(Location from, Location to, Color4 color) { var vertices = new PositionColored[2]; vertices[0] = new PositionColored(from.ToVector3(), color.ToArgb()); vertices[1] = new PositionColored(to.ToVector3(), color.ToArgb()); Device.DrawUserPrimitives(PrimitiveType.LineList, 1, vertices); }
public static void DrawLine(Location from, Location to, Color4 color) { var vertices = new PositionColored[2]; vertices[0] = new PositionColored(from.ToVector3(), color.ToArgb()); vertices[1] = new PositionColored(to.ToVector3(), color.ToArgb()); Device.DrawUserPrimitives(PrimitiveType.LineList, 1, vertices); }
public static void DrawLine(Location from, Location to, Color color) { var vertices = new PositionColored[2]; vertices[0] = new PositionColored(Vector3.Zero, color.ToArgb()); vertices[1] = new PositionColored(to.ToVector3() - from.ToVector3(), color.ToArgb()); InternalRender(from.ToVector3()); Device.DrawUserPrimitives(PrimitiveType.LineList, vertices.Length / 2, vertices); }
public static void DrawLine(Location from, Location to, Color color) { var vertices = new PositionColored[2]; vertices[0] = new PositionColored(Vector3.Zero, color.ToArgb()); vertices[1] = new PositionColored(to.ToVector3() - from.ToVector3(), color.ToArgb()); InternalRender(from.ToVector3()); Device.DrawUserPrimitives(PrimitiveType.LineList, vertices.Length / 2, vertices); }