PixelFormat format = NO_PIXELFORMAT;
PixelFormat storage_fmt = NO_PIXELFORMAT;
ComponentSwizzle swizzle = NO_SWIZZLE;
+ unsigned n_levels = 0;
bool use_srgb_format = false;
bool auto_gen_mipmap = false;
Texture(unsigned);
void set_format(PixelFormat);
+ static unsigned count_levels(unsigned);
+
+ void stage_pixels(void *, const void *, std::size_t);
public:
PixelFormat get_format() const { return format; }