Example #1
0
        public void Draw(SharpRenderer renderer)
        {
            if (Vector3.Distance(renderer.Camera.GetPosition(), TriggerPosition) <= 15000f)
            {
                if (TriggerShape == 1) //plane
                {
                    renderer.DrawCubeTrigger(triggerPosWorld, isSelected);
                }
                else if (TriggerShape == 3) // cube
                {
                    renderer.DrawCubeTrigger(triggerPosWorld, isSelected);
                }
                else if (TriggerShape == 4) // cyl
                {
                    renderer.DrawCylinderTrigger(triggerPosWorld, isSelected);
                }
                else // sphere
                {
                    renderer.DrawSphereTrigger(triggerPosWorld, isSelected);
                }
            }

            if (isSelected)
            {
                DrawCube(renderer, pointAWorld, Color.Red.ToVector4());
                DrawCube(renderer, pointBWorld, Color.Blue.ToVector4());
                DrawCube(renderer, pointCWorld, Color.Green.ToVector4());
                DrawCube(renderer, camPosWorld, Color.Pink.ToVector4());
            }
        }
Example #2
0
        public override void Draw(SharpRenderer renderer)
        {
            renderer.DrawSphereTrigger(transformMatrix, isSelected);

            if (isSelected)
            {
                renderer.DrawCubeTrigger(destinationMatrix, isSelected);
            }
        }
Example #3
0
        public override void Draw(SharpRenderer renderer)
        {
            base.Draw(renderer);

            if (isSelected)
            {
                renderer.DrawCubeTrigger(triggerMatrix, true);
            }
        }
Example #4
0
        public override void Draw(SharpRenderer renderer, string[][] modelNames, int miscSettingByte, bool isSelected)
        {
            switch (TriggerShape)
            {
            case TriggerSEShape.Sphere:
                renderer.DrawSphereTrigger(transformMatrix, isSelected);
                break;

            case TriggerSEShape.Cube:
                renderer.DrawCubeTrigger(transformMatrix, isSelected);
                break;

            default:
                DrawCube(renderer, isSelected);
                break;
            }
        }
        public override void Draw(SharpRenderer renderer)
        {
            switch (TriggerShape)
            {
            case TriggerSEShape.Sphere:
                renderer.DrawSphereTrigger(transformMatrix, isSelected);
                break;

            case TriggerSEShape.Cube:
                renderer.DrawCubeTrigger(transformMatrix, isSelected);
                break;

            default:
                DrawCube(renderer);
                break;
            }
        }
Example #6
0
 public override void Draw(SharpRenderer renderer, string[][] modelNames, int miscSettingByte, bool isSelected)
 {
     if (TriggerShape == TriggerTalkShape.Sphere)
     {
         renderer.DrawSphereTrigger(transformMatrix, isSelected);
     }
     else if (TriggerShape == TriggerTalkShape.Cylinder)
     {
         renderer.DrawCylinderTrigger(transformMatrix, isSelected);
     }
     else if (TriggerShape == TriggerTalkShape.Cube)
     {
         renderer.DrawCubeTrigger(transformMatrix, isSelected);
     }
     else
     {
         DrawCube(renderer, isSelected);
     }
 }
Example #7
0
 public override void Draw(SharpRenderer renderer)
 {
     if (TriggerShape == TriggerTalkShape.Sphere)
     {
         renderer.DrawSphereTrigger(transformMatrix, isSelected);
     }
     else if (TriggerShape == TriggerTalkShape.Cylinder)
     {
         renderer.DrawCylinderTrigger(transformMatrix, isSelected);
     }
     else if (TriggerShape == TriggerTalkShape.Cube)
     {
         renderer.DrawCubeTrigger(transformMatrix, isSelected);
     }
     else
     {
         DrawCube(renderer);
     }
 }
        public void Draw(SharpRenderer renderer)
        {
            if (Vector3.Distance(renderer.Camera.GetPosition(), TriggerPosition) < 15000f)
            {
                //if (TriggerShape == 1 || TriggerShape == 3) //plane, cube
                renderer.DrawCubeTrigger(triggerPosWorld, isSelected);
            }
            //else if (TriggerShape == 4) // cyl
            //  renderer.DrawCylinderTrigger(triggerPosWorld, isSelected);
            //else // sphere
            //  renderer.DrawSphereTrigger(triggerPosWorld, isSelected);

            if (isSelected)
            {
                DrawCube(renderer, pointLookAtAWorld, Color.Red.ToVector4());
                DrawCube(renderer, pointLookAtBWorld, Color.Blue.ToVector4());
                DrawCube(renderer, pointLookFromAWorld, Color.Green.ToVector4());
                DrawCube(renderer, pointLookFromBWorld, Color.Pink.ToVector4());
            }
        }
Example #9
0
 public override void Draw(SharpRenderer renderer)
 {
     renderer.DrawCubeTrigger(transformMatrix, isSelected);
 }
Example #10
0
 public override void Draw(SharpRenderer renderer, string[][] modelNames, int miscSettingByte, bool isSelected)
 {
     renderer.DrawCubeTrigger(transformMatrix, isSelected);
 }
 public override void Draw(string[] modelNames, bool isSelected)
 {
     SharpRenderer.DrawCubeTrigger(transformMatrix, isSelected);
 }