]> git.tdb.fi Git - r2c2.git/commitdiff
Fix some GL function calls
authorMikko Rasa <tdb@tdb.fi>
Sun, 7 Nov 2010 14:25:56 +0000 (14:25 +0000)
committerMikko Rasa <tdb@tdb.fi>
Sun, 7 Nov 2010 14:25:56 +0000 (14:25 +0000)
source/3d/track.cpp

index 49ef02e4ff06ae079968d5698c565b71e19f6f86..5340318063338d9ba6f439df5c831c6be76abd21 100644 (file)
@@ -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