Nebula
Loading...
Searching...
No Matches
resource.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
12//------------------------------------------------------------------------------
13#include "core/refcounted.h"
14#include "resourceid.h"
15namespace Resources
16{
17class ResourceLoader;
18class ResourceMemoryCache;
19class ResourceServer;
20class ResourceContainer;
22{
23public:
24
33 Resource();
35 virtual ~Resource();
36
37protected:
38 friend class ResourceLoader;
39 friend class ResourceMemoryCache;
40 friend class ResourceServer;
41 friend class ResourceContainer;
42};
43
44} // namespace Resources
Definition resource.h:22
friend class ResourceMemoryCache
Definition resource.h:39
friend class ResourceContainer
Definition resource.h:41
virtual ~Resource()
destructor
Definition resource.cc:22
Resource()
constructor
Definition resource.cc:14
State
Definition resource.h:26
@ Pending
Definition resource.h:27
@ Unloaded
Resource loading failed.
Definition resource.h:30
@ Loaded
Resource has some loading to be performed.
Definition resource.h:28
@ Failed
Resource is done loading all of its requested subresources.
Definition resource.h:29
Definition resourceloader.h:60
Definition resourceserver.h:22
A resource is a container for some type of file which is loaded.
Definition resource.cc:9