]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pipeline.h
Rework ProgramData to do less unnecessary work
[libs/gl.git] / source / pipeline.h
index f8fdb5450b18d42eb621ff0fb80141918b9ecbc8..515ca1a48db7992c1ae8c3bebc1a6bfd9fd10085 100644 (file)
@@ -102,6 +102,7 @@ private:
        unsigned samples;
        RenderTarget *target[2];
        MultisampleTarget *target_ms;
+       mutable bool in_frame;
 
 public:
        Pipeline(unsigned, unsigned, bool = false);
@@ -118,11 +119,14 @@ public:
        void remove_renderable(const Renderable &);
        void add_postprocessor(PostProcessor &);
 
+       virtual void setup_frame() const;
+       virtual void finish_frame() const;
+
        virtual void render(const Tag &tag = Tag()) const;
        virtual void render(Renderer &, const Tag &tag = Tag()) const;
 
 private:
-       void create_targets(bool);
+       void create_targets(unsigned);
 };
 
 } // namespace GL