X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture3d.h;h=50e4555aa56cca44e3ec0d66ee09d2641a81f3ab;hb=b617c5d7b5283ad260a77f01e42e6170cabbc03d;hp=b4260e88a0119930f3364c55d76d7399e88e8b76;hpb=a361efc05fcad11b2918f3cd7abdebe794b131d8;p=libs%2Fgl.git diff --git a/source/texture3d.h b/source/texture3d.h index b4260e88..50e4555a 100644 --- a/source/texture3d.h +++ b/source/texture3d.h @@ -9,6 +9,7 @@ Distributed under the LGPL #define MSP_GL_TEXTURE3D_H_ #include +#include "datatype.h" #include "pixelformat.h" #include "texture.h" @@ -19,20 +20,20 @@ class Texture3D: public Texture { private: PixelFormat ifmt; - sizei width; - sizei height; - sizei depth; + unsigned width; + unsigned height; + unsigned depth; int border; public: Texture3D(); - 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, 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); + unsigned get_width() const { return width; } + unsigned get_height() const { return height; } + unsigned get_depth() const { return depth; } }; } // namespace GL