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

Classes

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

Enumerations

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

Functions

const String & Dviglo::GetResourceName (Resource *resource)
 
StringHash Dviglo::GetResourceType (Resource *resource, StringHash defaultType)
 
ResourceRef Dviglo::GetResourceRef (Resource *resource, StringHash defaultType)
 
template<class T >
Vector< String > Dviglo::GetResourceNames (const Vector< SharedPtr< T > > &resources)
 
template<class T >
ResourceRefList Dviglo::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.