Dry
Classes | Enumerations | Functions
Resource.h File Reference
#include "../Core/Object.h"
#include "../Core/Timer.h"
#include "../Resource/JSONValue.h"

Classes

class  Dry::Resource
 Base class for resources. More...
 
class  Dry::ResourceWithMetadata
 Base class for resources that support arbitrary metadata stored. Metadata serialization shall be implemented in derived classes. More...
 

Enumerations

enum  Dry::AsyncLoadState {
  Dry::ASYNC_DONE = 0, Dry::ASYNC_QUEUED = 1, Dry::ASYNC_LOADING = 2, Dry::ASYNC_SUCCESS = 3,
  Dry::ASYNC_FAIL = 4
}
 Asynchronous loading state of a resource. More...
 

Functions

const String & Dry::GetResourceName (Resource *resource)
 
StringHash Dry::GetResourceType (Resource *resource, StringHash defaultType)
 
ResourceRef Dry::GetResourceRef (Resource *resource, StringHash defaultType)
 
template<class T >
Vector< String > Dry::GetResourceNames (const Vector< SharedPtr< T > > &resources)
 
template<class T >
ResourceRefList Dry::GetResourceRefList (const Vector< SharedPtr< T > > &resources)
 

Enumeration Type Documentation

◆ AsyncLoadState

Asynchronous loading state of a resource.

Enumerator
ASYNC_DONE 

No async operation in progress.

ASYNC_QUEUED 

Queued for asynchronous loading.

ASYNC_LOADING 

In progress of calling BeginLoad() in a worker thread.

ASYNC_SUCCESS 

BeginLoad() succeeded. EndLoad() can be called in the main thread.

ASYNC_FAIL 

BeginLoad() failed.