]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/trackwrap.h
Use GL::Renderer in TrackWrap
[r2c2.git] / source / designer / trackwrap.h
index 2f21125c6b703b2ba05b97b834ec5637c7570565..070794e48c0b6a7deab175950ab3cc14dc64a9a1 100644 (file)
@@ -1,16 +1,10 @@
-/* $Id$
-
-This file is part of R²C²
-Copyright © 2010  Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
 #ifndef TRACKWRAP_H_
 #define TRACKWRAP_H_
 
 #include <msp/gl/mesh.h>
 #include <msp/gl/renderable.h>
 #include "libr2c2/track.h"
+#include "3d/layout.h"
 
 class Designer;
 class Selection;
@@ -24,15 +18,16 @@ 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;
+       virtual void render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
 
 private:
        void selection_changed();