X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Faxle.h;h=e53efb2c97b52d99dfb5ba3b0273b5980927bd05;hb=f8873062b146028c07f55ad625d2767e45133c27;hp=55db1bba1160c8fd5254256d6aaca2105b35b2fd;hpb=4b7008978ce5b67e7e1db14b4a359e4ab1881bbd;p=r2c2.git diff --git a/source/3d/axle.h b/source/3d/axle.h index 55db1bb..e53efb2 100644 --- a/source/3d/axle.h +++ b/source/3d/axle.h @@ -1,33 +1,22 @@ -/* $Id$ - -This file is part of R²C² -Copyright © 2011 Mikkosoft Productions, Mikko Rasa -Distributed under the GPL -*/ - -#ifndef LIBR2C23D_AXLE_H_ -#define LIBR2C23D_AXLE_H_ +#ifndef R2C2_3D_AXLE_H_ +#define R2C2_3D_AXLE_H_ #include #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