]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/pipeline.h
New way of loading scenes in the viewer
[libs/gl.git] / source / render / pipeline.h
index dd80ef3bb1563d475e1ab9d606444187047b4b6d..91996186e3eb1296f6be4e8117d64748313af5be 100644 (file)
@@ -47,9 +47,9 @@ public:
                Renderable *renderable;
 
        public:
-               Pass(const Tag &, Renderable *);
+               Pass(Tag, Renderable *);
 
-               const Tag &get_tag() const { return tag; }
+               Tag get_tag() const { return tag; }
 
                void set_lighting(const Lighting *);
                void set_depth_test(const DepthTest *);
@@ -111,7 +111,7 @@ public:
 
        /** Adds a pass to the pipeline.  It's permissible to add the same
        Renderable multiple times. */
-       Pass &add_pass(const Tag &, Renderable &);
+       Pass &add_pass(Tag, Renderable &);
 
        /** Adds a postprocessor to the pipeline. */
        void add_postprocessor(PostProcessor &);
@@ -128,7 +128,7 @@ public:
        virtual void setup_frame(Renderer &);
        virtual void finish_frame();
 
-       virtual void render(Renderer &, const Tag &tag = Tag()) const;
+       virtual void render(Renderer &, Tag tag = Tag()) const;
 
 private:
        void create_targets(unsigned);