]> git.tdb.fi Git - libs/gl.git/blobdiff - source/resource.h
Implement automatic unloading when a total size limit is exceeded
[libs/gl.git] / source / resource.h
index 625c9f93059dd122cdf2ee526d85568a839f0dce..b3bce17e32cf86b95b1ba3914dd0ab8ab1d72d40 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef MSP_GL_RESOURCE_H_
 #define MSP_GL_RESOURCE_H_
 
+#include <msp/core/inttypes.h>
 #include <msp/io/seekable.h>
 
 namespace Msp {
@@ -33,6 +34,7 @@ public:
        void set_manager(ResourceManager *);
        void *get_manager_data() const { return manager_data; }
        virtual AsyncLoader *load(IO::Seekable &) = 0;
+       virtual UInt64 get_data_size() const = 0;
        virtual void unload() = 0;
 };