]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture2dmultisample.h
Remove RenderBuffer and always use textures as framebuffer attachments
[libs/gl.git] / source / core / texture2dmultisample.h
diff --git a/source/core/texture2dmultisample.h b/source/core/texture2dmultisample.h
new file mode 100644 (file)
index 0000000..cb086f0
--- /dev/null
@@ -0,0 +1,34 @@
+#ifndef MSP_GL_TEXTURE2DMULTISAMPLE_H_
+#define MSP_GL_TEXTURE2DMULTISAMPLE_H_
+
+#include "texture.h"
+
+namespace Msp {
+namespace GL {
+
+class Texture2DMultisample: public Texture
+{
+private:
+       unsigned width;
+       unsigned height;
+       unsigned samples;
+
+public:
+       Texture2DMultisample();
+
+       void storage(PixelFormat fmt, unsigned wd, unsigned ht, unsigned sm);
+
+       virtual void image(const Graphics::Image &, unsigned = 0);
+
+       unsigned get_width() const { return width; }
+       unsigned get_height() const { return height; }
+
+       virtual AsyncLoader *load(IO::Seekable &, const Resources * = 0) { return 0; }
+       virtual UInt64 get_data_size() const;
+       virtual void unload() { }
+};
+
+} // namespace GL
+} // namespace Msp
+
+#endif