init(view.get_width(), view.get_height());
}
+Pipeline::Pipeline(const Framebuffer &fbo)
+{
+ init(fbo.get_width(), fbo.get_height());
+}
+
void Pipeline::init(unsigned w, unsigned h)
{
camera = 0;
public:
Pipeline(unsigned, unsigned, bool = false);
Pipeline(const View &);
+ Pipeline(const Framebuffer &);
private:
void init(unsigned, unsigned);
public:
}
}
+Pipeline *PipelineBuilder::build(unsigned w, unsigned h) const
+{
+ RefPtr<Pipeline> pipeline = new Pipeline(w, h);
+ build(*pipeline);
+ return pipeline.release();
+}
+
Pipeline *PipelineBuilder::build(const View &view) const
{
RefPtr<Pipeline> pipeline = new Pipeline(view);
return pipeline.release();
}
+Pipeline *PipelineBuilder::build(const Framebuffer &fbo) const
+{
+ RefPtr<Pipeline> pipeline = new Pipeline(fbo);
+ build(*pipeline);
+ return pipeline.release();
+}
+
} // namespace GL
} // namespace Msp
namespace Msp {
namespace GL {
+class Framebuffer;
class Pipeline;
class PipelineTemplate;
class Renderable;
void set_renderable(const std::string &, Renderable &);
void build(Pipeline &) const;
+ Pipeline *build(unsigned, unsigned) const;
Pipeline *build(const View &) const;
+ Pipeline *build(const Framebuffer &) const;
};
} // namespace GL