]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/bogie.h
Clear the critical flag one track earlier
[r2c2.git] / source / 3d / bogie.h
index 0dac988cb0f00aff67b884618be7248990635722..7b6dbfc9540e8d663b922c6b81a2f0da95d70fa9 100644 (file)
@@ -1,24 +1,21 @@
-#ifndef LIBR2C23D_BOGIE_H_
-#define LIBR2C23D_BOGIE_H_
+#ifndef R2C2_3D_BOGIE_H_
+#define R2C2_3D_BOGIE_H_
 
 #include <msp/gl/objectinstance.h>
 #include "libr2c2/vehicle.h"
+#include "vehiclepart.h"
 
 namespace R2C2 {
 
-class Vehicle3D;
-
-class Bogie3D: public Msp::GL::ObjectInstance
+class Bogie3D: public VehiclePart3D
 {
 private:
-       const Vehicle &vehicle;
        const Vehicle::Bogie &bogie;
 
 public:
        Bogie3D(const Vehicle3D &, unsigned);
 
-       virtual void render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
-       virtual void setup_render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
+       virtual void update_matrix();
 };
 
 } // namespace R2C2