1 #ifndef MSP_GL_PIPELINE_H_
2 #define MSP_GL_PIPELINE_H_
6 #include "renderable.h"
20 class Pipeline: public Renderable
27 const Lighting *lighting;
28 const DepthTest *depth_test;
34 const Tag &get_tag() const { return tag; }
36 void set_lighting(const Lighting *);
37 void set_depth_test(const DepthTest *);
38 void set_blend(const Blend *);
39 const Lighting *get_lighting() const { return lighting; }
40 const DepthTest *get_depth_test() const { return depth_test; }
41 const Blend *get_blend() const { return blend; }
47 const Renderable *renderable;
50 Slot(const Renderable *);
53 typedef std::list<Pass> PassList;
57 std::vector<Slot> renderables;
58 std::vector<PostProcessor *> postproc;
67 Renderbuffer *color_buf_ms;
68 Renderbuffer *depth_buf_ms;
71 Pipeline(unsigned, unsigned, bool = false);
75 void set_multisample(unsigned);
76 void set_camera(const Camera *);
78 Pass &add_pass(const Tag &tag);
80 void add_renderable(const Renderable &);
81 void add_renderable_for_pass(const Renderable &, const Tag &);
82 void remove_renderable(const Renderable &);
83 void add_postprocessor(PostProcessor &);
85 virtual void render(const Tag &tag = Tag()) const;
86 virtual void render(Renderer &, const Tag &tag = Tag()) const;