};
private:
- PixelFormat ifmt;
unsigned width;
unsigned allocated;
void storage(PixelFormat, unsigned);
void allocate(unsigned);
void image(unsigned, PixelFormat, DataType, const void *);
+ void sub_image(unsigned, int, unsigned, PixelFormat, DataType, const void *);
virtual void image(const Graphics::Image &, bool = false);
unsigned get_width() const { return width; }
private:
- unsigned get_level_size(unsigned);
+ unsigned get_n_levels() const;
+ unsigned get_level_size(unsigned) const;
public:
virtual AsyncLoader *load(IO::Seekable &, const Resources * = 0) { return 0; }