X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ftexture3d.h;fp=source%2Fcore%2Ftexture3d.h;h=df52bf66ee8daeb1e1a879440c63ed52ab799833;hb=2b7f8e45e75bec30c1ea27fc0efd8286f67adc3f;hp=1f50e056d8cb286d8e99b4c739f83e5f09c777bd;hpb=aff68a183a4b33653750acc57a021fd7ed6c555c;p=libs%2Fgl.git diff --git a/source/core/texture3d.h b/source/core/texture3d.h index 1f50e056..df52bf66 100644 --- a/source/core/texture3d.h +++ b/source/core/texture3d.h @@ -2,6 +2,7 @@ #define MSP_GL_TEXTURE3D_H_ #include +#include #include "texture.h" namespace Msp { @@ -27,14 +28,13 @@ public: void storage_levels(PixelFormat, unsigned, unsigned, unsigned, unsigned); }; -private: +protected: unsigned width; unsigned height; unsigned depth; unsigned levels; unsigned allocated; -protected: Texture3D(GLenum); public: Texture3D(); @@ -83,7 +83,7 @@ public: unsigned get_depth() const { return depth; } protected: unsigned get_n_levels() const; - void get_level_size(unsigned, unsigned &, unsigned &, unsigned &) const; + LinAl::Vector get_level_size(unsigned) const; public: virtual AsyncLoader *load(IO::Seekable &, const Resources * = 0) { return 0; }