X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Ftracktype.h;h=27bf7fe97723ec8e9e0c39d2f4b63ade8bcd0c89;hb=5116fff210cdc3f0fbdae13046cc60450aad5e8f;hp=952e8986b17365ee52112fd25a03b9b02e4f0c86;hpb=7fac28fcb5afb17eff7c459474e4cf884a02719c;p=r2c2.git diff --git a/source/3d/tracktype.h b/source/3d/tracktype.h index 952e898..27bf7fe 100644 --- a/source/3d/tracktype.h +++ b/source/3d/tracktype.h @@ -1,6 +1,7 @@ #ifndef R2C2_3D_TRACKTYPE_H_ #define R2C2_3D_TRACKTYPE_H_ +#include #include #include #include @@ -18,14 +19,14 @@ private: Msp::GL::Mesh *mesh; Msp::GL::Object *object; bool own_data; - std::vector path_meshes; + std::map path_meshes; public: TrackType3D(Catalogue3D &, const TrackType &); ~TrackType3D(); const Msp::GL::Object &get_object() const { return *object; } - const Msp::GL::Mesh &get_path_mesh(unsigned) const; + const Msp::GL::Mesh &get_path_mesh(int, int) const; private: void build_part(const TrackPart &, const Profile &, const Vector &, bool, Msp::GL::MeshBuilder &, unsigned &);