3 This file is part of libmspgl
4 Copyright © 2009 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GL_PIPELINE_H_
9 #define MSP_GL_PIPELINE_H_
12 #include "pipelinepass.h"
13 #include "renderable.h"
24 class Pipeline: public Renderable
27 typedef std::map<Tag, PipelinePass> PassMap;
30 std::vector<Tag> pass_order;
31 std::vector<const Renderable *> renderables;
32 std::vector<Effect *> effects;
33 std::vector<PostProcessor *> postproc;
39 Renderbuffer *depth_buf;
42 Pipeline(unsigned, unsigned, bool);
45 PipelinePass &add_pass(const Tag &tag);
46 PipelinePass &get_pass(const Tag &tag);
47 const PipelinePass &get_pass(const Tag &tag) const;
49 void add_renderable(const Renderable &);
50 void add_effect(Effect &);
51 void add_postprocessor(PostProcessor &);
53 virtual void render(const Tag &tag=Tag()) const;
54 void render_all() const;