X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture3d.h;h=12bd4a4b8c223f640e3f4fadcda96d54dc449e74;hb=2be605933f62521bb22780256386a14b371c8b17;hp=8d9566d8ec6c7f82d1112d84024239c2d8b60273;hpb=ceae2a27dfc58310c5bab7e3aa3fedf0fa9a1f49;p=libs%2Fgl.git diff --git a/source/texture3d.h b/source/texture3d.h index 8d9566d8..12bd4a4b 100644 --- a/source/texture3d.h +++ b/source/texture3d.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_GL_TEXTURE3D_H_ #define MSP_GL_TEXTURE3D_H_ @@ -23,17 +16,20 @@ private: unsigned width; unsigned height; unsigned depth; - int border; + unsigned allocated; public: Texture3D(); - void storage(PixelFormat, unsigned, unsigned, unsigned, int); - void image(int, PixelFormat, DataType, const void *); - void sub_image(int, int, int, unsigned, unsigned, unsigned, PixelFormat, DataType, const void *); - void load_image(const std::string &fn, int dp=-1); + 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 get_level_size(unsigned, unsigned &, unsigned &, unsigned &); }; } // namespace GL