X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpipeline.h;h=515ca1a48db7992c1ae8c3bebc1a6bfd9fd10085;hb=b152e4f63170e8ccd6c9fb9397964c628fb6efeb;hp=f8fdb5450b18d42eb621ff0fb80141918b9ecbc8;hpb=904de4f7fd994886adbd3a6c03bc1b7c14ebc562;p=libs%2Fgl.git diff --git a/source/pipeline.h b/source/pipeline.h index f8fdb545..515ca1a4 100644 --- a/source/pipeline.h +++ b/source/pipeline.h @@ -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