X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frender%2Frendertarget.h;h=b7d4af03840f4e81196fad3222255b74be345732;hb=016f0f0dd51511f98d0bf398d99199d7dec1543c;hp=98189e78d17731215b096be9513846e1caa9a733;hpb=190a7e11237351f6b730c28f7b16f183e8adc69c;p=libs%2Fgl.git diff --git a/source/render/rendertarget.h b/source/render/rendertarget.h index 98189e78..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 { @@ -15,7 +16,7 @@ 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 +class RenderTarget: public NonCopyable { private: unsigned width; @@ -25,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; }