本文整理汇总了C++中TRACK::RemoveStartOrientation方法的典型用法代码示例。如果您正苦于以下问题:C++ TRACK::RemoveStartOrientation方法的具体用法?C++ TRACK::RemoveStartOrientation怎么用?C++ TRACK::RemoveStartOrientation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TRACK
的用法示例。
在下文中一共展示了TRACK::RemoveStartOrientation方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: handleKeyPress
//.........这里部分代码省略.........
if (activestrip != NULL)
{
track.Delete(activestrip);
mq1.AddMessage("Deleted road.");
}
else
{
mq1.AddMessage("Can't delete road: no road selected.");
}
activestrip = NULL;
editordata.numbezinput = 0;
break;
case 'n':
//create a new road
mq1.AddMessage("Ready to create new road, add patches.");
activestrip = NULL;
editordata.numbezinput = 0;
break;
case 's':
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;