3 This file is part of libmspgl
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GL_TEXTURE3D_H_
9 #define MSP_GL_TEXTURE3D_H_
13 #include "pixelformat.h"
19 class Texture3D: public Texture
30 void storage(PixelFormat, unsigned, unsigned, unsigned);
31 void allocate(unsigned);
32 void image(unsigned, PixelFormat, DataType, const void *);
33 void sub_image(unsigned, int, int, int, unsigned, unsigned, unsigned, PixelFormat, DataType, const void *);
34 void load_image(const std::string &fn, int dp = -1);
35 unsigned get_width() const { return width; }
36 unsigned get_height() const { return height; }
37 unsigned get_depth() const { return depth; }
39 void require_storage();
40 void get_level_size(unsigned, unsigned &, unsigned &, unsigned &);