本文整理汇总了C++中TRACK::NumLapSeqs方法的典型用法代码示例。如果您正苦于以下问题:C++ TRACK::NumLapSeqs方法的具体用法?C++ TRACK::NumLapSeqs怎么用?C++ TRACK::NumLapSeqs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TRACK
的用法示例。
在下文中一共展示了TRACK::NumLapSeqs方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: drawGLScene
//.........这里部分代码省略.........
editordata.bezinput[2] = patch.points[0][2];
editordata.bezinput[3] = patch.points[0][3];
}
else
{
editordata.bezinput[oldnumbezinput] = selvert;
if (vertmode == THREEVERTS && (oldnumbezinput == 1 || oldnumbezinput == 5))
editordata.bezinput[oldnumbezinput+1] = selvert;
}
}
editordata.mousebounce[1] = mouse.ButtonDown(1);
glPushAttrib(GL_ALL_ATTRIB_BITS);
glDisable(GL_LIGHTING);
glDisable(GL_TEXTURE_2D);
glDisable(GL_DEPTH_TEST);
glPointSize(4.0);
glColor4f(1,0,0,1);
glBegin(GL_POINTS);
for (i = 0; i < editordata.numbezinput; i++)
{
if (vertmode != TWOVERTS || i == 0 || i == 3 || i == 4 || i == 7)
{
glVertex3fv(editordata.bezinput[i].v3());
}
}
glEnd();
glColor4f(1,1,1,1);
glPopAttrib();
track.VisualizeRoads(true, false, activestrip);
for (int l = 0; l < track.NumLapSeqs(); l++)
{
BEZIER * lapbez = track.GetLapSeq(l);
if (lapbez != NULL)
{
VERTEX reddish;
reddish.x = 0.5;
reddish.y = 0.2;
reddish.z = 0.2;
lapbez->Visualize(true, false, reddish);
}
}
//image in the framebuffer is now complete.
/*//add a brightness/contrast adjustment
glClear (GL_DEPTH_BUFFER_BIT);
glLoadIdentity();
glPushAttrib(GL_ALL_ATTRIB_BITS);
glDisable(GL_TEXTURE_2D);
glEnable(GL_BLEND);
glDisable(GL_FOG);
glDisable(GL_LIGHTING);
glTranslatef(0,0,-40.0f);
glBlendFunc(GL_ONE, GL_SRC_ALPHA);
float rd = (float) weathersystem.GetRainDrops();
float rainscale = 0.7f;
float clearscale = 1.1f;
float rainbias = 0.035f;