]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/axle.h
Move block reservation signal serialization to Layout
[r2c2.git] / source / 3d / axle.h
index 2612528a253abfcd0590fa734fe79324a68a8fe5..e53efb2c97b52d99dfb5ba3b0273b5980927bd05 100644 (file)
@@ -1,26 +1,22 @@
-#ifndef LIBR2C23D_AXLE_H_
-#define LIBR2C23D_AXLE_H_
+#ifndef R2C2_3D_AXLE_H_
+#define R2C2_3D_AXLE_H_
 
 #include <msp/gl/objectinstance.h>
 #include "libr2c2/vehicle.h"
+#include "vehiclepart.h"
 
 namespace R2C2 {
 
-class Vehicle3D;
-
-class Axle3D: public Msp::GL::ObjectInstance
+class Axle3D: public VehiclePart3D
 {
 private:
-       const Vehicle &vehicle;
        const Vehicle::Bogie *bogie;
        const Vehicle::Axle &axle;
 
 public:
        Axle3D(const Vehicle3D &, unsigned);
-       Axle3D(const Vehicle3D &, unsigned, 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