X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fpipeline.h;h=e8ffaf5ee46f3bcc3500143769e9c4ab2744ab42;hp=19bea10a641d9664992013758b1c17a5ec709243;hb=HEAD;hpb=e17243fb2421977cb781361828b77718e2cf8d48 diff --git a/source/pipeline.h b/source/pipeline.h deleted file mode 100644 index 19bea10a..00000000 --- a/source/pipeline.h +++ /dev/null @@ -1,59 +0,0 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2009 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#ifndef MSP_GL_PIPELINE_H_ -#define MSP_GL_PIPELINE_H_ - -#include -#include "pipelinepass.h" -#include "renderable.h" - -namespace Msp { -namespace GL { - -class Effect; -class Framebuffer; -class PostProcessor; -class Renderbuffer; -class Texture2D; - -class Pipeline: public Renderable -{ -private: - std::map passes; - std::vector pass_order; - std::vector renderables; - std::vector effects; - std::vector postproc; - unsigned width; - unsigned height; - bool hdr; - Framebuffer *fbo; - Texture2D *color_buf; - Renderbuffer *depth_buf; - -public: - Pipeline(unsigned, unsigned, bool); - ~Pipeline(); - - PipelinePass &add_pass(const Tag &tag); - PipelinePass &get_pass(const Tag &tag); - const PipelinePass &get_pass(const Tag &tag) const; - virtual bool has_pass(const Tag &tag) const; - - void add_renderable(const Renderable &); - void add_effect(Effect &); - void add_postprocessor(PostProcessor &); - - virtual void render(const Tag &tag=Tag()) const; - void render_all() const; -}; - -} // namespace GL -} // namespace Msp - -#endif