X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Frender%2Frendertarget.h;h=b7d4af03840f4e81196fad3222255b74be345732;hp=98189e78d17731215b096be9513846e1caa9a733;hb=HEAD;hpb=190a7e11237351f6b730c28f7b16f183e8adc69c diff --git a/source/render/rendertarget.h b/source/render/rendertarget.h index 98189e78..a59e382c 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 { @@ -13,9 +14,10 @@ class Texture2D; 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. +the sample count of the format. For multisampled formats, resolve attachments +are also created. */ -class RenderTarget +class RenderTarget: public NonCopyable { private: unsigned width; @@ -25,10 +27,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; }