]> git.tdb.fi Git - libs/gl.git/blob - source/core/texture2dmultisample.h
Remove RenderBuffer and always use textures as framebuffer attachments
[libs/gl.git] / source / core / texture2dmultisample.h
1 #ifndef MSP_GL_TEXTURE2DMULTISAMPLE_H_
2 #define MSP_GL_TEXTURE2DMULTISAMPLE_H_
3
4 #include "texture.h"
5
6 namespace Msp {
7 namespace GL {
8
9 class Texture2DMultisample: public Texture
10 {
11 private:
12         unsigned width;
13         unsigned height;
14         unsigned samples;
15
16 public:
17         Texture2DMultisample();
18
19         void storage(PixelFormat fmt, unsigned wd, unsigned ht, unsigned sm);
20
21         virtual void image(const Graphics::Image &, unsigned = 0);
22
23         unsigned get_width() const { return width; }
24         unsigned get_height() const { return height; }
25
26         virtual AsyncLoader *load(IO::Seekable &, const Resources * = 0) { return 0; }
27         virtual UInt64 get_data_size() const;
28         virtual void unload() { }
29 };
30
31 } // namespace GL
32 } // namespace Msp
33
34 #endif