]> git.tdb.fi Git - r2c2.git/blobdiff - source/engineer/trainview.cpp
Rename Point to Vector
[r2c2.git] / source / engineer / trainview.cpp
index df336d577197763080a68fca2360f97fc52c6d52..a2dedf9e0f4f03df1011baf1f5581809bea92fed 100644 (file)
@@ -1,6 +1,6 @@
 /* $Id$
 
-This file is part of the MSP Märklin suite
+This file is part of R²C²
 Copyright © 2010  Mikkosoft Productions, Mikko Rasa
 Distributed under the GPL
 */
@@ -8,13 +8,13 @@ Distributed under the GPL
 #include <msp/gl/tests.h>
 #include <msp/gltk/button.h>
 #include <msp/gltk/image.h>
-#include "libmarklin/vehicle.h"
-#include "libmarklin/vehicletype.h"
+#include "libr2c2/vehicle.h"
+#include "libr2c2/vehicletype.h"
 #include "engineer.h"
 #include "trainview.h"
 
 using namespace Msp;
-using namespace Marklin;
+using namespace R2C2;
 
 TrainView::TrainView(Engineer &e, const Train &t):
        engineer(e),
@@ -27,7 +27,7 @@ TrainView::TrainView(Engineer &e, const Train &t):
        set_size(300, 330);
 
        tex.set_min_filter(GL::LINEAR);
-       tex.storage(GL::RGB, 280, 280, 0);
+       tex.storage(GL::RGB, 280, 280);
        tex.image(0, GL::RGB, GL::UNSIGNED_BYTE, 0);
        fbo.attach(GL::COLOR_ATTACHMENT0, tex, 0);
        depth.storage(GL::DEPTH_COMPONENT, 280, 280);
@@ -92,7 +92,7 @@ void TrainView::set_forward(bool f)
 void TrainView::prepare()
 {
        const Vehicle &veh = train.get_vehicle(0);
-       const Point &pos = veh.get_position();
+       const Vector &pos = veh.get_position();
        float angle = veh.get_direction();
        if(!forward)
                angle += M_PI;