X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Fvehicle.h;h=919845403f6d54fba3117f3e6342ff674e3ad0c2;hb=d84f187ca34a6ab2f8c37d85fa13d5c113714344;hp=feab8a1dd2a95972bfed83a966306702d72049f7;hpb=e5cd9e4fbc577036a0385c985b6b65df8218d0a2;p=r2c2.git diff --git a/source/3d/vehicle.h b/source/3d/vehicle.h index feab8a1..9198454 100644 --- a/source/3d/vehicle.h +++ b/source/3d/vehicle.h @@ -1,40 +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_ +#ifndef R2C2_3D_VEHICLE_H_ +#define R2C2_3D_VEHICLE_H_ +#include #include -#include "libmarklin/vehicle.h" +#include "libr2c2/vehicle.h" #include "object.h" -namespace Marklin { +namespace R2C2 { -class Layout3D; +class VehiclePart3D; class VehicleType3D; -class Vehicle3D: public Object3D, public Msp::GL::Renderable +class Vehicle3D: public Object3D, public Msp::GL::ObjectInstance { private: - Layout3D &layout; Vehicle &vehicle; const VehicleType3D &type; + std::vector children; public: Vehicle3D(Layout3D &, Vehicle &); ~Vehicle3D(); Vehicle &get_vehicle() const { return vehicle; } + const VehicleType3D &get_type() const { return type; } - virtual Point get_node() const; + virtual Vector get_node() const; + virtual bool is_visible() const; +private: + virtual void moved(); - virtual void render(const Msp::GL::Tag &) const; +public: + virtual void render(Msp::GL::Renderer &, const Msp::GL::Tag &) const; + virtual void setup_render(Msp::GL::Renderer &, const Msp::GL::Tag &) const; }; -} // namespace Marklin +} // namespace R2C2 #endif