]> git.tdb.fi Git - libs/gl.git/blobdiff - source/resource.h
Avoid some brain damage from Windows headers
[libs/gl.git] / source / resource.h
index 01c604c3f6d41cf70bd7cf5bf20de501f3ec70ed..571d1ea56c54e61ab10c43ef0f10cce766f19bb3 100644 (file)
@@ -38,7 +38,11 @@ public:
        virtual int get_load_priority() const { return 0; }
        virtual AsyncLoader *load(IO::Seekable &, const Resources * = 0) = 0;
        virtual bool is_loaded() const;
+
+       /** Returns the amount of graphics memory used by this resource.  The
+       returned value must not change while the resource is loaded. */
        virtual UInt64 get_data_size() const = 0;
+
        virtual void unload() = 0;
 };