]> git.tdb.fi Git - libs/gl.git/commitdiff
Add functions to retrieve steps and postprocessors from Sequence
authorMikko Rasa <tdb@tdb.fi>
Wed, 20 Oct 2021 12:31:22 +0000 (15:31 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 20 Oct 2021 12:31:22 +0000 (15:31 +0300)
source/render/sequence.h

index f51d28b948fc783520f124d44812cb78ebf75843..dd9fd8849b62b47f338970bdb9206f240c4470b6 100644 (file)
@@ -97,9 +97,13 @@ public:
        Renderable multiple times. */
        Step &add_step(Tag, Renderable &);
 
+       const std::vector<Step> &get_steps() const { return steps; }
+
        /** Adds a postprocessor to the sequence. */
        void add_postprocessor(PostProcessor &);
 
+       const std::vector<PostProcessor *> &get_postprocessors() const { return postproc; }
+
        /** Adds an owned object, which will be deleted together with the sequence. */
        template<typename T>
        void add_owned(T *p)