1 #ifndef MSP_GL_TEXTURE3D_H_
2 #define MSP_GL_TEXTURE3D_H_
6 #include "pixelformat.h"
12 class Texture3D: public Texture
23 void storage(PixelFormat, unsigned, unsigned, unsigned);
24 void allocate(unsigned);
25 void image(unsigned, PixelFormat, DataType, const void *);
26 void sub_image(unsigned, int, int, int, unsigned, unsigned, unsigned, PixelFormat, DataType, const void *);
27 void load_image(const std::string &fn, int dp = -1);
28 unsigned get_width() const { return width; }
29 unsigned get_height() const { return height; }
30 unsigned get_depth() const { return depth; }
32 void require_storage();
33 void get_level_size(unsigned, unsigned &, unsigned &, unsigned &);