]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pipeline.h
Notify Renderables about the start and end of a frame
[libs/gl.git] / source / pipeline.h
index f8fdb5450b18d42eb621ff0fb80141918b9ecbc8..2c5b6c6490fac43a85ce054cfdd78f69fe186f83 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,6 +119,9 @@ 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;