const Point &pos = track.get_position();
float rot = track.get_rotation();
- glTranslatef(pos.x, pos.y, pos.z);
- glRotatef(rot*180/M_PI, 0, 0, 1);
- glRotatef(track.get_slope()/track.get_type().get_total_length()*180/M_PI, 0, -1, 0);
+ GL::translate(pos.x, pos.y, pos.z);
+ GL::rotate(rot*180/M_PI, 0, 0, 1);
+ GL::rotate(track.get_slope()/track.get_type().get_total_length()*180/M_PI, 0, -1, 0);
}
void Track3D::render(const GL::Tag &tag) const