private:
unsigned width = 0;
- unsigned levels = 0;
public:
/** Sets storage format and size and allocates memory for the texture. If
unsigned get_width() const { return width; }
private:
- unsigned get_n_levels() const;
unsigned get_level_size(unsigned) const;
-
-public:
- virtual AsyncLoader *load(IO::Seekable &, const Resources * = 0) { return 0; }
- virtual std::size_t get_data_size() const;
- virtual void unload() { }
};
} // namespace GL