X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frender%2Frendertarget.h;h=a59e382c105f81ad18916056deab8a94e27f333c;hb=94cadd1618f93239b1cb0acbd4f958257c035c98;hp=bad7845c4064d1bb1c7993a97565a8aa071db81c;hpb=6353307898cd397e2bcde13e2448a8a678a60004;p=libs%2Fgl.git diff --git a/source/render/rendertarget.h b/source/render/rendertarget.h index bad7845c..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 { @@ -9,7 +10,14 @@ 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. For multisampled formats, resolve attachments +are also created. +*/ +class RenderTarget: public NonCopyable { private: unsigned width; @@ -19,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; }