X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fresources%2Fresource.h;h=2a312e960acd8b1595dc5a93fe03a5b8ed54cff7;hb=e70662d7812464159f2e47f4bebb69d88f89ae93;hp=571d1ea56c54e61ab10c43ef0f10cce766f19bb3;hpb=7aaec9a70b8d7733429bec043f8e33e02956f266;p=libs%2Fgl.git diff --git a/source/resources/resource.h b/source/resources/resource.h index 571d1ea5..2a312e96 100644 --- a/source/resources/resource.h +++ b/source/resources/resource.h @@ -1,7 +1,8 @@ #ifndef MSP_GL_RESOURCE_H_ #define MSP_GL_RESOURCE_H_ -#include +#include +#include #include namespace Msp { @@ -10,7 +11,7 @@ namespace GL { class ResourceManager; class Resources; -class Resource +class Resource: public NonCopyable { public: class AsyncLoader @@ -25,10 +26,11 @@ public: }; protected: - ResourceManager *manager; - void *manager_data; + ResourceManager *manager = 0; + void *manager_data = 0; - Resource(); + Resource() = default; + Resource(Resource &&); public: virtual ~Resource(); @@ -41,7 +43,7 @@ public: /** 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 std::size_t get_data_size() const = 0; virtual void unload() = 0; };