X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpipeline.h;h=f7f7e06ca198d84fe0a7b0aad583898f3eabd6cc;hb=7f888de83aa5398fafaa7661547ee80395377b5c;hp=3f0ea2fa235390a81232c5b95bd26a014a93128d;hpb=4d3bee9264c4e60fb811019fc1699e17a338d13d;p=libs%2Fgl.git diff --git a/source/pipeline.h b/source/pipeline.h index 3f0ea2fa..f7f7e06c 100644 --- a/source/pipeline.h +++ b/source/pipeline.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of libmspgl -Copyright © 2009 Mikko Rasa, Mikkosoft Productions +Copyright © 2009-2011 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ @@ -45,14 +45,20 @@ private: unsigned width; unsigned height; bool hdr; + unsigned samples; Framebuffer *fbo; Texture2D *color_buf; - Renderbuffer *depth_buf; + Texture2D *depth_buf; + Framebuffer *fbo_ms; + Renderbuffer *color_buf_ms; + Renderbuffer *depth_buf_ms; public: - Pipeline(unsigned, unsigned, bool); + Pipeline(unsigned, unsigned, bool = false); ~Pipeline(); + void set_hdr(bool); + void set_multisample(unsigned); void set_camera(const Camera *); PipelinePass &add_pass(const Tag &tag); @@ -65,8 +71,11 @@ public: void add_effect(Effect &); void add_postprocessor(PostProcessor &); - virtual void render(const Tag &tag = Tag()) const; + virtual void render(Renderer &, const Tag &tag = Tag()) const; void render_all() const; + +private: + void create_fbos(); }; } // namespace GL