X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Fbogie.h;h=7b6dbfc9540e8d663b922c6b81a2f0da95d70fa9;hb=f0aa8913aa1f4df37b87dcedbc257febb0e101a1;hp=a9b9d54e2967053e2156bfd843c121c6ff24fb15;hpb=4b7008978ce5b67e7e1db14b4a359e4ab1881bbd;p=r2c2.git diff --git a/source/3d/bogie.h b/source/3d/bogie.h index a9b9d54..7b6dbfc 100644 --- a/source/3d/bogie.h +++ b/source/3d/bogie.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_BOGIE_H_ -#define LIBR2C23D_BOGIE_H_ +#ifndef R2C2_3D_BOGIE_H_ +#define R2C2_3D_BOGIE_H_ #include #include "libr2c2/vehicle.h" +#include "vehiclepart.h" namespace R2C2 { -class Vehicle3D; - -class Bogie3D: public Msp::GL::ObjectInstance +class Bogie3D: public VehiclePart3D { private: - const Vehicle &vehicle; const Vehicle::Bogie &bogie; public: Bogie3D(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