]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/tracktype.h
Plug several memory leaks
[r2c2.git] / source / 3d / tracktype.h
index e43dc428f1867a217a19ef8204fdeb159d6caca7..952e8986b17365ee52112fd25a03b9b02e4f0c86 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of R²C²
-Copyright © 2010-2011  Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
 #ifndef R2C2_3D_TRACKTYPE_H_
 #define R2C2_3D_TRACKTYPE_H_
 
@@ -24,16 +17,13 @@ private:
        Catalogue3D &catalogue;
        Msp::GL::Mesh *mesh;
        Msp::GL::Object *object;
+       bool own_data;
        std::vector<Msp::GL::Mesh *> path_meshes;
-       std::vector<Vector> border;
-       float min_z;
-       float max_z;
 
 public:
        TrackType3D(Catalogue3D &, const TrackType &);
        ~TrackType3D();
 
-       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;