]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pipelinebuilder.h
Support named postprocessor slots in pipeline templates
[libs/gl.git] / source / pipelinebuilder.h
index 6a40dbe77de61343f61c4d27fd8861059b8a7339..ab0dc4b9428c603fb4b555e83ee1091b9d2ef254 100644 (file)
@@ -10,6 +10,7 @@ namespace GL {
 class Framebuffer;
 class Pipeline;
 class PipelineTemplate;
+class PostProcessor;
 class Renderable;
 class View;
 
@@ -18,11 +19,13 @@ class PipelineBuilder
 private:
        const PipelineTemplate &tmpl;
        std::map<std::string, Renderable *> renderables;
+       std::map<std::string, PostProcessor *> postprocessors;
 
 public:
        PipelineBuilder(const PipelineTemplate &);
 
        void set_renderable(const std::string &, Renderable &);
+       void set_postprocessor(const std::string &, PostProcessor &);
 
        void build(Pipeline &) const;
        Pipeline *build(unsigned, unsigned) const;