#ifndef MSP_GL_TEXTURE2DMULTISAMPLE_H_
#define MSP_GL_TEXTURE2DMULTISAMPLE_H_
-#include "texture.h"
+#include "texture2dmultisample_backend.h"
namespace Msp {
namespace GL {
-class Texture2DMultisample: public Texture
+class Texture2DMultisample: public Texture2DMultisampleBackend
{
+ friend Texture2DMultisampleBackend;
+
private:
- unsigned width;
- unsigned height;
- unsigned samples;
+ unsigned width = 0;
+ unsigned height = 0;
+ unsigned samples = 0;
public:
- Texture2DMultisample();
-
void storage(PixelFormat fmt, unsigned wd, unsigned ht, unsigned sm);
virtual void image(const Graphics::Image &, unsigned = 0);
unsigned get_samples() const { return samples; }
virtual AsyncLoader *load(IO::Seekable &, const Resources * = 0) { return 0; }
- virtual UInt64 get_data_size() const;
+ virtual std::uint64_t get_data_size() const;
virtual void unload() { }
};