X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Fvehicle.h;fp=source%2F3d%2Fvehicle.h;h=feab8a1dd2a95972bfed83a966306702d72049f7;hb=e5cd9e4fbc577036a0385c985b6b65df8218d0a2;hp=0000000000000000000000000000000000000000;hpb=9b68c21ebf8ce26d92246ecd4a392d2908b511f7;p=r2c2.git diff --git a/source/3d/vehicle.h b/source/3d/vehicle.h new file mode 100644 index 0000000..feab8a1 --- /dev/null +++ b/source/3d/vehicle.h @@ -0,0 +1,40 @@ +/* $Id$ + +This file is part of the MSP Märklin suite +Copyright © 2010 Mikkosoft Productions, Mikko Rasa +Distributed under the GPL +*/ + +#ifndef LIBMARKLIN3D_VEHICLE_H_ +#define LIBMARKLIN3D_VEHICLE_H_ + +#include +#include "libmarklin/vehicle.h" +#include "object.h" + +namespace Marklin { + +class Layout3D; +class VehicleType3D; + +class Vehicle3D: public Object3D, public Msp::GL::Renderable +{ +private: + Layout3D &layout; + Vehicle &vehicle; + const VehicleType3D &type; + +public: + Vehicle3D(Layout3D &, Vehicle &); + ~Vehicle3D(); + + Vehicle &get_vehicle() const { return vehicle; } + + virtual Point get_node() const; + + virtual void render(const Msp::GL::Tag &) const; +}; + +} // namespace Marklin + +#endif