]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture.h
Immediately add renderables to the cache in SimpleScene::add
[libs/gl.git] / source / texture.h
index 5566dccb8c9a111f55336b59d6aa7b68d08c0370..db6165fed82628206f29d69b39036d2160edefca 100644 (file)
@@ -144,6 +144,10 @@ public:
        when a texture image is uploaded. */
        void set_generate_mipmap(bool);
 
+protected:
+       void auto_generate_mipmap();
+
+public:
        /** Sets depth texture comparison.  Has no effect on other formats.  When
        comparison is enabled, the third component of the texture coordinate is
        compared against the texel value, and the result is returned as the texture
@@ -162,6 +166,8 @@ public:
        static const Texture *current(unsigned = 0);
        static void unbind() { unbind_from(0); }
        static void unbind_from(unsigned);
+
+       virtual UInt64 get_data_size() const { return 0; }
 };
 
 } // namespace GL