]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture3d.h
Remove support for texture borders
[libs/gl.git] / source / texture3d.h
index 50e4555aa56cca44e3ec0d66ee09d2641a81f3ab..15d244dec10f116eca42f8c53515e3994720e90a 100644 (file)
@@ -23,17 +23,21 @@ 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 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 require_storage();
+       void get_level_size(unsigned, unsigned &, unsigned &, unsigned &);
 };
 
 } // namespace GL