X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Ftracktype.h;h=a0f4e4e47de3ed6ef70171584b55894be38383cf;hb=51779f52d3f1fe23e2bdb8864c88b5edd49c57ed;hp=3c06c58d8234047d7b198f2d0f9a68cfb1744f4a;hpb=d91ab10fd78ef29272282b020fa4e08063cb4808;p=r2c2.git diff --git a/source/3d/tracktype.h b/source/3d/tracktype.h index 3c06c58..a0f4e4e 100644 --- a/source/3d/tracktype.h +++ b/source/3d/tracktype.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of R²C² -Copyright © 2010 Mikkosoft Productions, Mikko Rasa -Distributed under the GPL -*/ - #ifndef R2C2_3D_TRACKTYPE_H_ #define R2C2_3D_TRACKTYPE_H_ @@ -22,10 +15,10 @@ class TrackType3D { private: Catalogue3D &catalogue; - Msp::GL::Mesh mesh; - Msp::GL::Object object; + Msp::GL::Mesh *mesh; + Msp::GL::Object *object; std::vector path_meshes; - std::vector border; + std::vector border; float min_z; float max_z; @@ -33,12 +26,12 @@ public: TrackType3D(Catalogue3D &, const TrackType &); ~TrackType3D(); - void get_bounds(float, Point &, Point &) const; - const Msp::GL::Object &get_object() const { return object; } + void get_bounds(float, Vector &, Vector &) const; + const Msp::GL::Object &get_object() const { return *object; } const Msp::GL::Mesh &get_path_mesh(unsigned) const; private: - void build_part(const TrackPart &, const Profile &, const Point &, Msp::GL::MeshBuilder &, unsigned &); + void build_part(const TrackPart &, const Profile &, const Vector &, bool, Msp::GL::MeshBuilder &, unsigned &); }; } // namespace R2C2