X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Frod.h;h=8521468377f67b16136844a6af5f2b888da7db1c;hb=a5e1363ceac1ab552849640c9021fcda362c4416;hp=6a32510ef92846e9c7d3c468576b19ac417fb360;hpb=4b7008978ce5b67e7e1db14b4a359e4ab1881bbd;p=r2c2.git diff --git a/source/3d/rod.h b/source/3d/rod.h index 6a32510..8521468 100644 --- a/source/3d/rod.h +++ b/source/3d/rod.h @@ -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_ #include #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