private:
unsigned size = 0;
- unsigned levels = 0;
static const Vector3 directions[6];
static const unsigned orientations[12];
cannot be changed once set. */
void storage(PixelFormat, unsigned size, unsigned lv = 0);
+ virtual void image(unsigned, const void *);
+
/** Replaces contents of a single face. Allocated storage must exist. The
image data is interpreted according to the storage format and must have size
matching the selected mipmap level. */
unsigned get_size() const { return size; }
private:
- unsigned get_n_levels() const;
unsigned get_level_size(unsigned) const;
public:
/** Returns a vector pointing to the center of a texel. */
Vector3 get_texel_direction(TextureCubeFace, unsigned, unsigned);
-
- virtual AsyncLoader *load(IO::Seekable &, const Resources * = 0) { return 0; }
- virtual std::size_t get_data_size() const;
- virtual void unload() { }
};
void operator>>(const LexicalConverter &, TextureCubeFace &);