};
private:
- PixelFormat ifmt;
unsigned width;
+ unsigned levels;
unsigned allocated;
public:
Texture1D();
- void storage(PixelFormat, unsigned);
+ void storage(PixelFormat, unsigned, unsigned = 0);
void allocate(unsigned);
void image(unsigned, PixelFormat, DataType, const void *);
void sub_image(unsigned, int, unsigned, PixelFormat, DataType, const void *);