X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Frod.h;h=1605caa11394cbf682fcca4d1454601e31f0ad91;hb=862d8bea6d31e6fe9a60747e0b9559f77e72bf44;hp=7d1403fb542de421639cc4578ea93f8ce6125ab1;hpb=d15ac13f2e170f155b4bbd124df48400c339b644;p=r2c2.git diff --git a/source/3d/rod.h b/source/3d/rod.h index 7d1403f..1605caa 100644 --- a/source/3d/rod.h +++ b/source/3d/rod.h @@ -1,24 +1,21 @@ -#ifndef LIBR2C23D_ROD_H_ -#define LIBR2C23D_ROD_H_ +#ifndef R2C2_3D_ROD_H_ +#define R2C2_3D_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