X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frender%2Frendertarget.h;h=b7d4af03840f4e81196fad3222255b74be345732;hb=016f0f0dd51511f98d0bf398d99199d7dec1543c;hp=bad7845c4064d1bb1c7993a97565a8aa071db81c;hpb=6353307898cd397e2bcde13e2448a8a678a60004;p=libs%2Fgl.git diff --git a/source/render/rendertarget.h b/source/render/rendertarget.h index bad7845c..b7d4af03 100644 --- a/source/render/rendertarget.h +++ b/source/render/rendertarget.h @@ -1,6 +1,7 @@ #ifndef RENDERTARGET_H_ #define RENDERTARGET_H_ +#include #include "framebuffer.h" namespace Msp { @@ -9,7 +10,13 @@ namespace GL { class Texture; class Texture2D; -class RenderTarget +/** +Wraps a Framebuffer and its attachments for easier management. + +All attachments will be created as 2D or 2D multisample textures, depending on +the sample count of the format. +*/ +class RenderTarget: public NonCopyable { private: unsigned width; @@ -19,10 +26,7 @@ private: public: RenderTarget(unsigned, unsigned, const FrameFormat & = (COLOR_ATTACHMENT, DEPTH_ATTACHMENT)); -private: - RenderTarget(const RenderTarget &); - RenderTarget &operator=(const RenderTarget &); -public: + RenderTarget(RenderTarget &&) = default; ~RenderTarget(); unsigned get_width() const { return width; }