]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/rod.h
Create a common base class for Vehicle3D parts
[r2c2.git] / source / 3d / rod.h
index 7d1403fb542de421639cc4578ea93f8ce6125ab1..8521468377f67b16136844a6af5f2b888da7db1c 100644 (file)
@@ -3,22 +3,19 @@
 
 #include <msp/gl/objectinstance.h>
 #include "libr2c2/vehicle.h"
+#include "vehiclepart.h"
 
 namespace R2C2 {
 
-class Vehicle3D;
-
-class Rod3D: public Msp::GL::ObjectInstance
+class Rod3D: public VehiclePart3D
 {
 private:
-       const Vehicle &vehicle;
        const Vehicle::Rod &rod;
 
 public:
        Rod3D(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