本文整理汇总了C++中TRACK::VisualizeRoads方法的典型用法代码示例。如果您正苦于以下问题:C++ TRACK::VisualizeRoads方法的具体用法?C++ TRACK::VisualizeRoads怎么用?C++ TRACK::VisualizeRoads使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TRACK
的用法示例。
在下文中一共展示了TRACK::VisualizeRoads方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: drawGLScene
//.........这里部分代码省略.........
VERTEX offset;
offset.x += -7;
offset.z += -10;
fl = fl + offset;
fr = fr + offset;
bl = bl + offset;
br = br + offset;
nextpatch.SetFromCorners(fl, fr, bl, br);
//patch.Attach(nextpatch);
BEZIER thirdpatch;
offset.zero();
offset.y += -3;
offset.z += -10;
fl = fl + offset;
fr = fr + offset;
bl = bl + offset;
br = br + offset;
thirdpatch.SetFromCorners(fl, fr, bl, br);
//nextpatch.Attach(thirdpatch);
TRACK track;
ROADSTRIP * teststrip = track.AddNewRoad();
teststrip->Add(patch);
teststrip->Add(nextpatch);
teststrip->Add(thirdpatch);
//teststrip.DeleteLastPatch();
track.VisualizeRoads(true, true);
VERTEX down;
down.y = -1;
VERTEX colpoint;
if (patch.Collide(cam.position.ScaleR(-1.0), down, colpoint))
{
//colpoint.DebugPrint();
}
}*/
VERTEX camray;
camray.z = -1;
camray = cam.dir.ReturnConjugate().RotateVec(camray);
/*camray.z = 1;
camray = cam.dir.RotateVec(camray);*/
VERTEX selvert;
bool highlightedvert = false;
if (objects.FindClosestVert(cam.position.ScaleR(-1.0), camray, selvert, highlighted_model))
{
/*cam.position.ScaleR(-1.0).DebugPrint();
selvert.DebugPrint();
cout << endl;*/
//draw a highlighted vert
highlightedvert = true;
glPushAttrib(GL_ALL_ATTRIB_BITS);
glDisable(GL_LIGHTING);
glDisable(GL_TEXTURE_2D);
glDisable(GL_DEPTH_TEST);
//glEnable(GL_BLEND);