]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/layout.h
Use GL::Renderables and a Pipeline for rendering
[r2c2.git] / source / 3d / layout.h
index 21686de5f9c8bbc4a19e1fdc21acffd2276b4267..a7fbdb98b9dbc7b7751ce2e26470403dd647c85d 100644 (file)
@@ -8,6 +8,7 @@ Distributed under the GPL
 #ifndef MARKLIN3D_LAYOUT_H_
 #define MARKLIN3D_LAYOUT_H_
 
+#include <msp/gl/scene.h>
 #include "libmarklin/layout.h"
 #include "catalogue.h"
 #include "track.h"
@@ -20,6 +21,8 @@ private:
        Layout &layout;
        Catalogue3D catalogue;
        std::list<Track3D *> tracks;
+       Msp::GL::Scene scene;
+       Msp::GL::Scene ep_scene;
        unsigned quality;
 
 public:
@@ -28,10 +31,16 @@ public:
 
        const Catalogue3D &get_catalogue() const { return catalogue; }
        void set_quality(unsigned);
+
+       void add_track(Track3D &);
+       void remove_track(Track3D &);
        const std::list<Track3D *> &get_tracks() const { return tracks; }
-       void render(bool =false) const;
        Track3D &get_track(const Track &) const;
        Track3D *pick_track(float, float, float) const;
+
+       Msp::GL::Scene &get_scene() { return scene; }
+       Msp::GL::Scene &get_endpoint_scene() { return ep_scene; }
+
 private:
        void track_added(Track &);
        void track_removed(Track &);