]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture3d.h
Get rid of the typedefs for fundamental types
[libs/gl.git] / source / texture3d.h
index ec3b57ba5f594942ab3ffa3f3cab5555a45f7e51..8d9566d8ec6c7f82d1112d84024239c2d8b60273 100644 (file)
@@ -9,6 +9,7 @@ Distributed under the LGPL
 #define MSP_GL_TEXTURE3D_H_
 
 #include <string>
+#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 storage(PixelFormat, unsigned, unsigned, unsigned, int);
        void image(int, PixelFormat, DataType, const void *);
-       void sub_image(int, int, int, sizei, sizei, sizei, 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);
-       sizei get_width() const { return width; }
-       sizei get_height() const { return height; }
-       sizei get_depth() const { return depth; }
+       unsigned get_width() const { return width; }
+       unsigned get_height() const { return height; }
+       unsigned get_depth() const { return depth; }
 };
 
 } // namespace GL