]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/trackwrap.h
Make TrackWrap take a Layout3D since it doesn't really need Designer
[r2c2.git] / source / designer / trackwrap.h
index 36285150dc58b619946f74efb597d3e81ee6f196..8a72892e66c5a0467402b63098a56b3559a61641 100644 (file)
@@ -11,6 +11,7 @@ Distributed under the GPL
 #include <msp/gl/mesh.h>
 #include <msp/gl/renderable.h>
 #include "libr2c2/track.h"
+#include "3d/layout.h"
 
 class Designer;
 class Selection;
@@ -24,13 +25,13 @@ private:
                Msp::GL::Mesh *mesh;
        };
 
-       Designer &designer;
+       R2C2::Layout3D &layout;
        Selection &selection;
        std::map<const R2C2::TrackType *, Msp::GL::Mesh *> meshes;
        std::list<Wrap> wraps;
 
 public:
-       TrackWrap(Designer &, Selection &);
+       TrackWrap(R2C2::Layout3D &, Selection &);
        ~TrackWrap();
 
        virtual void render(const Msp::GL::Tag &) const;