Example #1
0
        public virtual void Render(GLContext context)
        {
            Entity e1 = PrimaryEditor.GetTarget(TargetIDOne);
            Entity e2 = PrimaryEditor.GetTarget(TargetIDTwo);

            if (e1 != null && e2 != null)
            {
                context.Rendering.RenderLine(e1.Position, e2.Position);
            }
        }
Example #2
0
        public override void Render(GLContext context)
        {
            Entity e1 = PrimaryEditor.GetTarget(TargetIDOne);
            Entity e2 = PrimaryEditor.GetTarget(TargetIDTwo);

            if (e1 != null && e2 != null)
            {
                context.Rendering.RenderLineBox(pos - new Location(0.1f), pos + new Location(0.1f));
                context.Rendering.RenderLine(e1.Position, pos);
                context.Rendering.RenderLine(e2.Position, pos);
            }
        }