X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ftexture2dmultisample.h;fp=source%2Fcore%2Ftexture2dmultisample.h;h=82ab0818d84fc4d2994458dd8688d1b1b4ad8d9a;hb=190a7e11237351f6b730c28f7b16f183e8adc69c;hp=77f4c542a51c1eba7da3684d56db3a1f98077704;hpb=be6ffe96ecb4707599fe1a6f620c348760213d46;p=libs%2Fgl.git diff --git a/source/core/texture2dmultisample.h b/source/core/texture2dmultisample.h index 77f4c542..82ab0818 100644 --- a/source/core/texture2dmultisample.h +++ b/source/core/texture2dmultisample.h @@ -6,6 +6,15 @@ namespace Msp { namespace GL { +/** +Two-dimensional multisample texture, consisting of a rectancular array of +texels with multiple samples each. + +The contents of multisample textures can not be set through API. Their primary +use is as Framebuffer attachments. + +Multisample textures can't have mipmaps. +*/ class Texture2DMultisample: public Texture2DMultisampleBackend { friend Texture2DMultisampleBackend; @@ -16,7 +25,9 @@ private: unsigned samples = 0; public: - void storage(PixelFormat fmt, unsigned wd, unsigned ht, unsigned sm); + /** Sets storage dimensions, format and sample count and allocates memory + for the texture. */ + void storage(PixelFormat, unsigned wd, unsigned ht, unsigned sm); virtual void image(const Graphics::Image &, unsigned = 0);