};
private:
- unsigned width;
- unsigned height;
- unsigned levels;
+ unsigned width = 0;
+ unsigned height = 0;
+ unsigned levels = 0;
public:
- Texture2D();
virtual ~Texture2D();
/** Defines storage structure for the texture. If lv is zero, the number
image must match the defined storage. */
virtual void image(const Graphics::Image &, unsigned lv = 0);
- using Texture::image;
-
unsigned get_width() const { return width; }
unsigned get_height() const { return height; }
public:
virtual Resource::AsyncLoader *load(IO::Seekable &, const Resources * = 0);
- virtual std::uint64_t get_data_size() const;
+ virtual std::size_t get_data_size() const;
using Texture2DBackend::unload;
};