Changeset 3014 in orxonox.OLD for orxonox/branches/bezierTrack/src/world.cc
- Timestamp:
- Nov 27, 2004, 4:12:26 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/bezierTrack/src/world.cc
r3013 r3014 99 99 { 100 100 // create some path nodes 101 this->pathnodes = new Vector[6];102 101 103 102 this->tracklen = 6; … … 264 263 */ 265 264 //draw track 266 glBegin(GL_LINE S);265 glBegin(GL_LINE_STRIP); 267 266 glColor3f(0,1,1); 268 for( int i = 0; i < tracklen; i++) 269 { 270 glVertex3f(pathnodes[i].x,pathnodes[i].y,pathnodes[i].z); 271 glVertex3f(pathnodes[(i+1)%tracklen].x,pathnodes[(i+1)%tracklen].y,pathnodes[(i+1)%tracklen].z); 267 for( float i = 0; i <= 1; i+=.01) 268 { 269 glVertex3f(track->getPos(i).x, track->getPos(i).y, track->getPos(i).z); 272 270 } 273 271 glEnd();
Note: See TracChangeset
for help on using the changeset viewer.