X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fresource.h;h=571d1ea56c54e61ab10c43ef0f10cce766f19bb3;hp=09d60e44917eb6e6e06a4476e42b3a75d4257bcd;hb=HEAD;hpb=cabb833e9b4ca10b9f350f3be6c351dce6a66822 diff --git a/source/resource.h b/source/resource.h deleted file mode 100644 index 09d60e44..00000000 --- a/source/resource.h +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef MSP_GL_RESOURCE_H_ -#define MSP_GL_RESOURCE_H_ - -#include -#include - -namespace Msp { -namespace GL { - -class ResourceManager; -class Resources; - -class Resource -{ -public: - class AsyncLoader - { - protected: - AsyncLoader() { } - public: - virtual ~AsyncLoader() { } - - virtual bool needs_sync() const = 0; - virtual bool process() = 0; - }; - -protected: - ResourceManager *manager; - void *manager_data; - - Resource(); -public: - virtual ~Resource(); - - void set_manager(ResourceManager *); - ResourceManager *get_manager() const { return manager; } - void *get_manager_data() const { return manager_data; } - virtual AsyncLoader *load(IO::Seekable &, const Resources * = 0) = 0; - virtual bool is_loaded() const; - virtual UInt64 get_data_size() const = 0; - virtual void unload() = 0; -}; - -} // namespace GL -} // namespace Msp - -#endif