X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpipeline.h;fp=source%2Fpipeline.h;h=e3f95994defff957a831987716901620aab94ad1;hb=b94d3423de1e61f46c22b421f4b293d2d094b89f;hp=d07e643176666f861e55dcb75a65f0de28b73021;hpb=14e5bc2c02ef8cc468d5727065ad732bb422a89c;p=libs%2Fgl.git diff --git a/source/pipeline.h b/source/pipeline.h index d07e6431..e3f95994 100644 --- a/source/pipeline.h +++ b/source/pipeline.h @@ -6,6 +6,7 @@ #include "framebuffer.h" #include "renderable.h" #include "renderbuffer.h" +#include "rendertarget.h" #include "texture2d.h" namespace Msp { @@ -78,24 +79,6 @@ private: Slot(const Renderable *); }; - struct RenderTarget - { - Framebuffer fbo; - Texture2D color; - Texture2D depth; - - RenderTarget(unsigned, unsigned, PixelFormat); - }; - - struct MultisampleTarget - { - Framebuffer fbo; - Renderbuffer color; - Renderbuffer depth; - - MultisampleTarget(unsigned, unsigned, unsigned, PixelFormat); - }; - typedef std::list PassList; PassList passes; @@ -107,7 +90,7 @@ private: bool hdr; unsigned samples; RenderTarget *target[2]; - MultisampleTarget *target_ms; + RenderTarget *target_ms; mutable bool in_frame; public: