本文整理汇总了C++中TRACK::AddLapSequence方法的典型用法代码示例。如果您正苦于以下问题:C++ TRACK::AddLapSequence方法的具体用法?C++ TRACK::AddLapSequence怎么用?C++ TRACK::AddLapSequence使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TRACK
的用法示例。
在下文中一共展示了TRACK::AddLapSequence方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: handleKeyPress
//.........这里部分代码省略.........
mq1.AddMessage("Saved to file");
track.Write(editordata.activetrack);
break;
case 'l':
track.SetStart(cam.position.ScaleR(-1));
track.SetStartOrientation(cam.dir.ReturnConjugate());
mq1.AddMessage("Added start location");
break;
case 'k':
track.RemoveStart();
track.RemoveStartOrientation();
mq1.AddMessage("Removed start location");
break;
case 'r':
//mq1.AddMessage("Saved to file");
tvec1.zero();
tvec1.z = -1;
tvec2 = cam.dir.ReturnConjugate().RotateVec(tvec1);
l = track.Collide(cam.position.ScaleR(-1.0), tvec2, tvec1, true, activestrip, colbez);
if (!l)
{
mq1.AddMessage("Can't select road: no road found under cursor");
}
break;
case 'a':
AutoTrace();
break;
case 'f':
for (i = 0; i < 25; i++)
{
AutoTrace();
}
break;
case 'i':
camray.z = -1;
camray = cam.dir.ReturnConjugate().RotateVec(camray);
if (objects.FindClosestVert(cam.position.ScaleR(-1.0), camray, selvert, tstr))
cout << tstr << endl;
break;
case '-':
track.ClearLapSequence();
mq1.AddMessage("All lap sequence markers cleared");
break;
case 'e':
//mq1.AddMessage("Saved to file");
tvec1.zero();
tvec1.z = -1;
tvec2 = cam.dir.ReturnConjugate().RotateVec(tvec1);
l = track.Collide(cam.position.ScaleR(-1.0), tvec2, tvec1, true, tempstrip, colbez);
if (!l)
{
mq1.AddMessage("Can't create lap sequence marker: no road found under cursor");
}
else
{
track.AddLapSequence(colbez);
}
break;
case '2':
mq1.AddMessage("Two-vertex selection mode");
vertmode = TWOVERTS;
break;
case '3':
mq1.AddMessage("Three-vertex selection mode");
vertmode = THREEVERTS;
break;
case '4':
mq1.AddMessage("Four-vertex selection mode");
vertmode = FOURVERTS;
break;
//case SDLK_F11:
//SDL_WM_ToggleFullScreen( surface );
//ChangeDisplay(1280,1024,32,true);
//menu.DisplayMenu();//DisplaySelect();
//break;
//case SDLK_F12:
//menu.MainMenu();
//break;
default:
keyman.OneTime(keysym->sym);
break;
}
}
return;
}