Exemple #1
0
 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);
 }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        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);
        }