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"
25 class Pipeline: public Renderable
28 typedef std::map<Tag, PipelinePass> PassMap;
31 std::vector<Tag> pass_order;
33 std::vector<const Renderable *> renderables;
34 std::vector<Effect *> effects;
35 std::vector<PostProcessor *> postproc;
41 Renderbuffer *depth_buf;
44 Pipeline(unsigned, unsigned, bool);
47 void set_camera(const Camera *);
49 PipelinePass &add_pass(const Tag &tag);
50 PipelinePass &get_pass(const Tag &tag);
51 const PipelinePass &get_pass(const Tag &tag) const;
53 void add_renderable(const Renderable &);
54 void add_effect(Effect &);
55 void add_postprocessor(PostProcessor &);
57 virtual void render(const Tag &tag=Tag()) const;
58 void render_all() const;