]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/rod.h
Don't crash if a train has no router
[r2c2.git] / source / 3d / rod.h
index 6a32510ef92846e9c7d3c468576b19ac417fb360..1605caa11394cbf682fcca4d1454601e31f0ad91 100644 (file)
@@ -1,31 +1,21 @@
-/* $Id$
-
-This file is part of R²C²
-Copyright © 2011  Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
-#ifndef LIBR2C23D_ROD_H_
-#define LIBR2C23D_ROD_H_
+#ifndef R2C2_3D_ROD_H_
+#define R2C2_3D_ROD_H_
 
 #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