private:
void init();
- void raw_data(const std::string &);
void storage(PixelFormat, unsigned, unsigned, unsigned);
void storage_levels(PixelFormat, unsigned, unsigned, unsigned, unsigned);
};
unsigned width = 0;
unsigned height = 0;
unsigned depth = 0;
- unsigned levels = 0;
Texture3D(unsigned);
public:
/** Replaces a cuboid-shaped region of the texture. Allocated storage must
exist. The image data is interpreted according to the storage format and
the region must be fully inside the texture. */
- void sub_image(unsigned level, int x, int y, int z, unsigned wd, unsigned ht, unsigned dp, const void *);
+ void sub_image(unsigned level, unsigned x, unsigned y, unsigned z, unsigned wd, unsigned ht, unsigned dp, const void *);
/** Sets the texture's contents from an image. The image is treated as a
stack of square layers and its height must be divisible by its width. If
unsigned get_height() const { return height; }
unsigned get_depth() const { return depth; }
protected:
- unsigned get_n_levels() const;
LinAl::Vector<unsigned, 3> 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