1 #ifndef MSP_GL_RESOURCE_H_
2 #define MSP_GL_RESOURCE_H_
4 #include <msp/io/seekable.h>
19 virtual ~AsyncLoader() { }
21 virtual bool needs_sync() const = 0;
22 virtual bool process() = 0;
26 ResourceManager *manager;
32 void set_manager(ResourceManager *);
33 virtual AsyncLoader *load(IO::Seekable &) = 0;
34 virtual void unload() = 0;