]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture2d.h
Remove the separate allocation step from textures and buffers
[libs/gl.git] / source / core / texture2d.h
index 442c544e3c9a52749d5f21c16da70a2a90041875..eba553b00c27089e44300424166afee3f8a6b54b 100644 (file)
@@ -36,7 +36,6 @@ private:
        unsigned width;
        unsigned height;
        unsigned levels;
-       unsigned allocated;
 
 public:
        Texture2D(ResourceManager * = 0);
@@ -49,28 +48,16 @@ public:
        it can't be changed. */
        void storage(PixelFormat fmt, unsigned wd, unsigned ht, unsigned lv = 0);
 
-       DEPRECATED void storage(PixelComponents cm, unsigned wd, unsigned ht, unsigned lv = 0)
-       { storage(make_pixelformat(cm, UNSIGNED_BYTE), wd, ht, lv); }
-
-       /** Allocates storage for the texture.  The contents are initially
-       undefined.  If storage has already been allocated, does nothing. */
-       void allocate(unsigned level);
-
        /** Updates the contents of the entire texture.  Storage must be defined
        beforehand.  The image data must have dimensions and format matching the
        defined storage. */
        virtual void image(unsigned level, const void *data);
 
-       DEPRECATED void image(unsigned level, PixelComponents fmt, DataType type, const void *data);
-
        /** Updates a rectangular region of the texture.  Storage must be defined
        beforehand.  The image data must be in a format mathing the defined storage
        and the update region must be fully inside the texture. */
        void sub_image(unsigned level, int x, int y, unsigned wd, unsigned ht, const void *data);
 
-       DEPRECATED void sub_image(unsigned level, int x, int y, unsigned wd, unsigned ht,
-               PixelComponents fmt, DataType type, const void *data);
-
        /** Updates the contents of the entire texture from an image.  If storage
        has not been defined, it will be set to match the image.  Otherwise the
        image must match the defined storage. */