]> git.tdb.fi Git - libs/gl.git/blobdiff - source/builders/sequencetemplate.h
Make clearing the render target a responsibility of Sequence
[libs/gl.git] / source / builders / sequencetemplate.h
index 9de2082d9ab68bdba42b112da51e1e460fa6fd20..660a043297bb2f8046c283bf6954ae538d620f09 100644 (file)
@@ -54,6 +54,7 @@ public:
                Loader(SequenceTemplate &, Collection &);
 
                virtual void postprocessor_loaded();
+               void clear();
                void multisample(unsigned);
                void multisample_range(unsigned, unsigned);
                void postprocessor(const std::string &);
@@ -117,6 +118,7 @@ private:
        unsigned max_multisample;
        std::vector<Step> steps;
        std::vector<PostProcessor> postprocessors;
+       bool clear_enabled;
 
 public:
        SequenceTemplate();
@@ -128,6 +130,7 @@ public:
        unsigned get_maximum_multisample() const { return max_multisample; }
        const std::vector<Step> &get_steps() const { return steps; }
        const std::vector<PostProcessor> &get_postprocessors() const { return postprocessors; }
+       bool is_clear_enabled() const { return clear_enabled; }
 
        template<typename T>
        static void register_postprocessor(const std::string &);