]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture1d.h
Explicitly define the number of mipmap levels in textures
[libs/gl.git] / source / texture1d.h
index 5e6f254977f877a20565e131412bb333f6248ab4..506356c77676d98cea1a01d52d8a8f373a71f024 100644 (file)
@@ -23,12 +23,13 @@ public:
 
 private:
        unsigned width;
+       unsigned levels;
        unsigned allocated;
 
 public:
        Texture1D();
 
-       void storage(PixelFormat, unsigned);
+       void storage(PixelFormat, unsigned, unsigned = 0);
        void allocate(unsigned);
        void image(unsigned, PixelFormat, DataType, const void *);
        void sub_image(unsigned, int, unsigned, PixelFormat, DataType, const void *);