X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Ftexture2dmultisample.h;fp=source%2Fcore%2Ftexture2dmultisample.h;h=cb086f0d85dbecaade0d227441ad16bab3a1d838;hp=0000000000000000000000000000000000000000;hb=cd5f37b066352119cf92d53d0001af7ff99be437;hpb=328b67fa59ce6736949732ea8ff4ef7c6675e200 diff --git a/source/core/texture2dmultisample.h b/source/core/texture2dmultisample.h new file mode 100644 index 00000000..cb086f0d --- /dev/null +++ b/source/core/texture2dmultisample.h @@ -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