X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Ftrack.cpp;fp=source%2F3d%2Ftrack.cpp;h=5340318063338d9ba6f439df5c831c6be76abd21;hb=9abaa89f495307c7e90cbef51ae0fedbaff001db;hp=49ef02e4ff06ae079968d5698c565b71e19f6f86;hpb=d6ad508feda1aaa9b2ac2ca2d303c8d28d3094b9;p=r2c2.git diff --git a/source/3d/track.cpp b/source/3d/track.cpp index 49ef02e..5340318 100644 --- a/source/3d/track.cpp +++ b/source/3d/track.cpp @@ -86,9 +86,9 @@ void Track3D::apply_matrix() const 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