- void storage(PixelFormat, sizei, sizei, sizei, int);
- void image(int, PixelFormat, GLenum, const void *);
- void sub_image(int, int, int, sizei, sizei, sizei, PixelFormat, GLenum, const void *);
- void load_image(const std::string &fn, int dp=-1);
- sizei get_width() const { return width; }
- sizei get_height() const { return height; }
- sizei get_depth() const { return depth; }
+ void storage(PixelFormat, unsigned, unsigned, unsigned);
+ void allocate(unsigned);
+ void image(unsigned, PixelFormat, DataType, const void *);
+ void sub_image(unsigned, int, int, int, unsigned, unsigned, unsigned, PixelFormat, DataType, const void *);
+ void load_image(const std::string &fn, int dp = -1);
+ unsigned get_width() const { return width; }
+ unsigned get_height() const { return height; }
+ unsigned get_depth() const { return depth; }
+private:
+ void require_storage();
+ void get_level_size(unsigned, unsigned &, unsigned &, unsigned &);