]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture2dmultisample.h
Remove support for array size specialization from the engine as well
[libs/gl.git] / source / core / texture2dmultisample.h
index 77f4c542a51c1eba7da3684d56db3a1f98077704..20c0f864b531311563353afc8fa2e9417f022c97 100644 (file)
@@ -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,8 +25,11 @@ 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(unsigned, const void *);
        virtual void image(const Graphics::Image &, unsigned = 0);
 
        unsigned get_width() const { return width; }