1 #ifndef MSP_GL_TEXTURE2DMULTISAMPLE_H_
2 #define MSP_GL_TEXTURE2DMULTISAMPLE_H_
4 #include "texture2dmultisample_backend.h"
10 Two-dimensional multisample texture, consisting of a rectancular array of
11 texels with multiple samples each.
13 The contents of multisample textures can not be set through API. Their primary
14 use is as Framebuffer attachments.
16 Multisample textures can't have mipmaps.
18 class Texture2DMultisample: public Texture2DMultisampleBackend
20 friend Texture2DMultisampleBackend;
28 /** Sets storage dimensions, format and sample count and allocates memory
30 void storage(PixelFormat, unsigned wd, unsigned ht, unsigned sm);
32 virtual void image(unsigned, const void *);
33 virtual void image(const Graphics::Image &, unsigned = 0);
35 unsigned get_width() const { return width; }
36 unsigned get_height() const { return height; }
37 unsigned get_samples() const { return samples; }