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()); } }
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); } }
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 override void Draw(SharpRenderer renderer) { switch (TriggerShape) { case TriggerMusicShape.Sphere: renderer.DrawSphereTrigger(transformMatrix, isSelected); break; case TriggerMusicShape.Cube: renderer.DrawCubeTrigger(transformMatrix, isSelected); break; case TriggerMusicShape.Cylinder: renderer.DrawCylinderTrigger(transformMatrix, isSelected); break; default: DrawCube(renderer); break; } }
public override void Draw(SharpRenderer renderer, string[][] modelNames, int miscSettingByte, bool isSelected) { switch (TriggerShape) { case TriggerMusicShape.Sphere: renderer.DrawSphereTrigger(transformMatrix, isSelected); break; case TriggerMusicShape.Cube: renderer.DrawCubeTrigger(transformMatrix, isSelected); break; case TriggerMusicShape.Cylinder: renderer.DrawCylinderTrigger(transformMatrix, isSelected); break; default: DrawCube(renderer, isSelected); break; } }